Issue: 307 Temporary Redirect After Sign-In in Production
To Reproduce
- Deploy the Next.js app to Vercel.
- Deploy the Hono API to Cloudflare.
- Attempt to sign in.
- Observe the redirect response and notice the 307 Temporary Redirect status.
After signing in, the user should be redirected from the sign-in page to the dashboard. Locally, when running Next.js on localhost:3000 and Hono API on localhost:8787, the redirection works as expected.
However, when deploying the Next.js app on Vercel and the Hono API on Cloudflare, the redirect results in a 307 Temporary Redirect instead of navigating correctly to the dashboard.
Expected Behavior
After a successful sign-in, the user should be redirected directly to the dashboard.Actual Behavior
In the production environment (Vercel + Cloudflare), the redirect results in a 307 Temporary Redirect, causing unexpected behavior.Local Network Logs
Production Network Logs