-
-
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
Static adapter does not honor base path for static files #3232
Comments
Someone kindly pointed out on the discord chat that I can work around this issue by manually prefixing my file paths for things in
While a bit tedious it's fine if that's the intended approach, but it does break down in places where you don't have access to |
@Ghirigoro can you set the |
Actually, I think this should be fixed by #3346 |
This does not appear to be fixed. I've just run into this issue on version 1.25.1. The workaround from @Ghirigoro is working. |
My
And my img tag: Broken on production build but working when runing in dev
Fixed:
|
Describe the bug
paths: { base: '/apath'}
static
folder are resolved at the root and ignore the base path. i.e.localhost:3000/img.png
instead of the expectedlocalhost:3000/apath/img.png
I would expect the base path to be honored across the board and not just for js/css files.
Reproduction
NOTE: I'm not sure if this is a bug or static files intentionally must always resolve to the root. If this is expected behavior I'll change this to a feature request, if it is indeed a bug then I will provide a repository highlighting the issue.
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: