-
-
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
Unable to set adapter-static
fallback when using bundleStrategy: inline
#13233
Comments
If I don't specify a fallback and instead pre-render all pages, it seems to work. Unfortunately, I'm trying to create an SPA -- is this fundamentally incompatible with an inline build? |
bundleStrategy: inline
adapter-static
fallback when using bundleStrategy: inline
Static output still needs to be served from http as seen in the error message (so apache/nginx or such). |
Hey @eltigerchino , I looked into this and I think the issue for you is that when you open the file the route is not If you create a catch-all route like |
I've added a reproduction of some of my issues here: https://github.com/stephenlrandall/kit-inline-test Using generic rest parameters wasn't really a feasible option, but using hash-based routing seemed to work well. It seems simple enough to toggle between a typical SPA deployment and an inline bundle deployment with the changes:
Some issues I still see:
|
Describe the bug
Perhaps I'm missing something obvious here, but attempting to use
bundleStrategy: inline
withadapter-static
in a fresh SvelteKit skeleton project produces the following errors:My configuration is
Reproduction
Use
npx sv create ...
and modify the Svelte config file to the above after adding@sveltejs/adapter-static
as a dependency.Logs
System Info
Severity
annoyance
Additional Information
Really happy to see this feature getting attention -- it's incredibly useful in certain environments.
The text was updated successfully, but these errors were encountered: