-
-
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
Assets path not replaced by _svelte_kit_assets in preview #12184
Comments
I think there is an error in documentation because during the build time the path of stylesheets are created and if we have an kit/packages/kit/src/runtime/server/page/render.js Lines 205 to 213 in 0fee61c
and it will get statically added in the html markup kit/packages/kit/src/runtime/server/page/render.js Lines 226 to 243 in 0fee61c
so IMO an easy solution will to just comment out the assets path line during local build. |
Describe the bug
One of the stated use cases for the
config.kit.paths.assets
config var is for the case where assets will be hosted on a separate domain to the site itself.The docs state:
That is what happens with
vite dev
. When runningvite preview
however, the value from config is still used. The only relevant previous issue I could find is #1154.Reproduction
https://github.com/drzax/assets-repro
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
We need to be able to debug production builds locally and this is currently blocking that.
The text was updated successfully, but these errors were encountered: