Infinite loop when accessing prerendered +server.js
from matching non-prerendered +server.js
#12778
Labels
bug
Something isn't working
Describe the bug
Given this structure
with
examples.json
being prerendered and[id].json
fetchingexamples.json
, the server is fine at dev time but crashes in prod. The manifest seems to not properly resolve the correct route, instead of fetching the prerenderedexamples.json
it recursively calls itself in[id].json
. My guess is that the runtime first tries to find a matching "live" route before checking if a prerendered one exists.Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-fhjdvp?file=src%2Froutes%2F%2Bpage.server.js
Logs
No response
System Info
Severity
annoyance
Additional Information
can be worked around by making sure the routes don't match
The text was updated successfully, but these errors were encountered: