When running next build (production) vs next dev, API route handlers can silently fail with:
Error: No response is returned from route handler '/path/to/route.ts'.
Ensure you return a `Response` or a `NextResponse` in all branches of your handler.