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
generateSW disables default error page #44
Comments
jasoneliu
changed the title
Prerender disables default error page
generateSW disables default error page
May 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In production, when using
export const prerender = true
andgenerateSW
, SvelteKit's default error page no longer works. Instead, the user is shown the page at/
.Reproduction:
examples/sveltekit-ts
, updatepackage.json
to use"@vite-pwa/sveltekit": "^0.2.1"
npm i
,npm run build
, andnpm run preview
http://localhost:4173/
. This shows+page.svelte
as expected.http://localhost:4173/about
. This showsabout/+page.svelte
as expected.http://localhost:4173/oops
. This shows+page.svelte
instead of rendering the default error page.This issue does not occur in development. When running
npm run dev
and visitinghttp://localhost:5173/oops
, it shows the default error page.I'm using Node v16.19.0 and npm v8.19.3.
The text was updated successfully, but these errors were encountered: