fix(web): prerender /offline für Workbox-Precache
Some checks are pending
CI / validate (push) Waiting to run
Some checks are pending
CI / validate (push) Waiting to run
Workbox wirft `non-precached-url: /offline` beim SW-Register, weil `createPWAConfig()` aus @mana/shared-pwa `navigateFallback: '/offline'` setzt, SvelteKit aber nur prerendertes HTML in den Precache aufnimmt (`**/*.html`-Glob → `prerendered/offline.html`). `+page.ts` mit `export const prerender = true;` landet die statische Offline-Page im Precache. Sweep über alle 10 shared-pwa-Konsumenten — selber Bug latent überall identisch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2b35168d38
commit
56de993fc3
1 changed files with 5 additions and 0 deletions
5
apps/web/src/routes/offline/+page.ts
Normal file
5
apps/web/src/routes/offline/+page.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Prerender, damit /offline im Workbox-Precache landet (matched
|
||||
// `prerendered/**/*.html`-Glob aus @mana/shared-pwa).
|
||||
// Ohne wirft der SW `non-precached-url`-Error auf
|
||||
// `createHandlerBoundToURL("/offline")` und der navigateFallback ist tot.
|
||||
export const prerender = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue