-
-
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
files
in $service-worker
should contain prerendered files
#2271
Comments
Please provide a complete and minimal reproducible example of what happen and should've happen. |
this is specific for adapter, so it's not good if it's provided by |
files
in $service-worker
should contain the fallback html file using adapter-static
files
in $service-worker
should contain prerendered files
For fallback we can add just the one. For prerendered files there might be too many to do this. We'd have to have the adapter generate the manifest after prerendering I guess? Or maybe we can somehow do SSG during Vite build, which I think vitepress might do |
@ignatiusmb you can build and preview the https://github.com/svelte-society/sveltesociety.dev: before building it, just add a service worker file and log the files entry from service worker module. You can see the expected output on this branch on my fork of On following screenshot, all these pages (there are a lot more) are missing from the service worker module (and for that reason, apps using service worker module cannot run on offline: if you preview my master branch fork, all pages will work on offline). |
SvelteKit's own service worker should contain prerendered files now. Unfortunately, it still doesn't happen early enough in the build process that plugins like |
Using
adapter-static
and the code:I expect to find also the
<NAME>.html
fallback file listed infiles
.Am I wrong?
The text was updated successfully, but these errors were encountered: