-
-
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
kit.paths.base
can't load css
and js
with @sveltejs/adapter-cloudflare
in production
#10290
Comments
As requested in the bug report template:
|
I updated the reproduction. |
Sorry for the lack of information on reproductions. Here is the details:
Here is the build configuration:Here is the assets uploaded to Cloudflare Pages after build: |
Describe the bug
Rumor has it
kit.paths.base
only works when usingadapter-static
.I can get the app on but there is no
css
orjs
loaded.I already prefix all URLs in my app with
base
from$app/paths
.Reproduction
The repo is here: chientrm/sk-base-cf-bug
Production page: https://sk-base-cf-bug.pages.dev/sk-base-cf-bug/
Work fine in local dev but on production it's not.
The title Home and Foo are supposed to be green (with css).
The link Foo and Back are supposed to be hydrated with SvelteKit instead of vanilla .
Here is the build configuration:
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
Me and many of my homies want to use 1 domain to rule all the SvelteKit apps under subfolder but this bug is a
no no
😢The text was updated successfully, but these errors were encountered: