You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In production, when using export const prerender = true and generateSW, SvelteKit's default error page no longer works. Instead, the user is shown the page at /.
Reproduction:
In examples/sveltekit-ts, update package.json to use "@vite-pwa/sveltekit": "^0.2.1"
Run npm i, npm run build, and npm run preview
Visit http://localhost:4173/. This shows +page.svelte as expected.
Visit http://localhost:4173/about. This shows about/+page.svelte as expected.
Visit 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 visiting http://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:
jasoneliu
changed the title
Prerender disables default error page
generateSW disables default error page
May 16, 2023
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: