-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prerendered assets are stored without file ending #9560
Comments
Workaround for now:
|
FWIW we call this out in the docs already: https://kit.svelte.dev/docs/page-options#prerender-route-conflicts I don't think there's any way around this. We can't just change the name of the saved files, because if All we can do is detect the error and guide the developer towards a resolution |
Thanks for adding the error message and guiding to the docs! |
Describe the bug
When
prerender
set totrue
and a+page.ts
file makes afetch
request, the response of that request get's written to disk.But it does so without a file ending. So when making a request to
/api
and/api/child
the first response get's saved as/api
(file) and when it tires to save the second response, an error get's thrown becauseSvelteKit
tries to create the/api
folder to save the/api/child
file.Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-vrpjqd
Running
npm run build
will throw an error.Logs
No response
System Info
`StackBlitz`
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: