Open dan2kx opened 1 year ago
Same issue I'm facing
I'm also having this issue
Hello! And I'm also having this issue!
Same
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
I am having same issue
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
Why the hell issue still exist? How to handle such usecases? Have same error with Lucia GitHub auth, I am redirecting in Route Handler.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/vercel/next.js/pull/46674
To Reproduce
Create a server component/layout/page/api/middleware that redirects to an external URL
Describe the Bug
Next tries to fetch the page (using the fetch api) and fails and then falls back to using browser naviation.
this happens with Request or NextRequest
Expected Behavior
Next should identify external links automatically or provide a way for them to be identified/handled differently, which would then not attempt to fetch and just allow the server to respond with a redirect header
This issue was addressed in #46674, but the functionality added was to add the fallback to browser navigation, i do not think the initial fetch to the external site should be made avoiding latency and the error being thrown
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response