Issue: 307 Temporary Redirect After Sign-In in Production

To Reproduce 1. Deploy the Next.js app to Vercel. 2. Deploy the Hono API to Cloudflare. 3. Attempt to sign in. 4. Observe the redirect response and notice the 307 Temporary Redirect status. Current vs. Expected behavior 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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?