-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Path in svelte.config.js
is not always respected, leading to it breaking
#9982
Comments
This worked in 1.15.5, and was broken in 1.15.6 by #9343
Now, do:
@Rich-Harris will probably need to chime in as he was behind #9343... but I imagine that the preview server just needs to redirect |
I confirm. Last working version when a base is set : 1.15.5, above nothing else work |
I can't seem to reproduce this. The build works when I try it in stackblitz. Can you confirm if it still broken on your end? |
@s3812497 I can still reproduce it. I used my instructions in this comment but first ran The issue persists. |
Describe the bug
When changing the base path in
svelte.config.js
, neithernpm run preview
nor the actual files work anymore, as they reference the paths without any additional names. I've searched this up a lot and couldn't find anything or what I might be doing wrong, so I assume it's a bug? I am not sure though.It is probably fixable by manually going in and changing the paths, but that should not be required.
Reproduction
https://github.com/mybearworld/svelte-base-path-bug-report
npm create svelte@latest svelte-base-path-bug-report
npm i
npm i @sveltejs/adapter-static
svelte.config.js
to the file below/src/routes/+layout.ts
asexport const prerender = true; export const ssr = false;
npm run build
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: