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
During dev this works fine:
No matter whether the route is invoked directly or visited through client side routing, the loads its __data.json and renders fine (if called directly, no server side rendering takes place as expected)
However, in production mode (tested with Vercel, node and Azure SWA) visiting the route causes an infinite redirection loop in the browser. The request for __data.json causes a 404.
The same behavior occurs when there's a +layout.server.ts involved.
Describe the bug
The following scenario:
During dev this works fine:
No matter whether the route is invoked directly or visited through client side routing, the loads its __data.json and renders fine (if called directly, no server side rendering takes place as expected)
However, in production mode (tested with Vercel, node and Azure SWA) visiting the route causes an infinite redirection loop in the browser. The request for __data.json causes a 404.
The same behavior occurs when there's a +layout.server.ts involved.
Reproduction
Example repo: https://github.com./aloker/kit-non-ssr-data-issue
The main branch uses adapter-auto, the adapter-node branch uses adapter-node
Notice that this runs fine in dev-mode and when running tests.
Vercel-deployment: https://kit-non-ssr-data-issue.vercel.app/
Node deployment: check out adapter-node branch, build project and run
node build
. Visitinghttp://localhost:3000
exposes the issue.Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: