You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding many debug logs in node_modules code, I managed to find out that in some way, when the request hit the handler, it has "purpose = prefetch" header set, which cause the handler to think it is prefetch and return null.
I was trying to figure out what is going on, but I cannot find any reason how this can happen.
Above you can find a screenshot from my debugging attempt.
murbanowicz
changed the title
[BUG] Building/bundling produces bundle with absolute local paths
[BUG] Normal request somehow getting "purpose = prefetch" header
Apr 11, 2025
Initially I thought it is about build,but found out it is not.
I am trying to move to Cloudflare with OpenNext.
I am using Kinde for auth (working great on Vercel).
Unfortunately, as they have a check for prefetch on login handler (other routes work ok) - https://github.com/kinde-oss/kinde-auth-nextjs/blob/main/src/handlers/login.ts#L12
After adding many debug logs in node_modules code, I managed to find out that in some way, when the request hit the handler, it has "purpose = prefetch" header set, which cause the handler to think it is prefetch and return null.
I was trying to figure out what is going on, but I cannot find any reason how this can happen.
Above you can find a screenshot from my debugging attempt.
dead simple logs put inside node_modules.
Any idea what can be going on here?
The text was updated successfully, but these errors were encountered: