vite-pwa / sveltekit

Zero-config PWA Plugin for SvelteKit
https://vite-pwa-org.netlify.app/frameworks/sveltekit
MIT License
324 stars 15 forks source link

generateSW disables default error page #44

Open jasoneliu opened 1 year ago

jasoneliu commented 1 year ago

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:

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.