managarten/apps/mana/apps
Till JS 6b1e8e878e fix(web): guard PwaUpdatePrompt against SSR navigator access
useRegisterSW() reaches for navigator.serviceWorker at call time, which
crashes SvelteKit SSR with "ReferenceError: navigator is not defined"
(Node has no navigator). The prod mana-web container crash-looped on
every request after the rebuild because the layout mounts this
component unconditionally.

Fix: branch on \$app/environment's \`browser\` flag. On the server,
hand back a noop writable + async-noop updater so the downstream
template code stays unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 15:33:35 +02:00
..
landing refactor: rename zitare -> quotes (Zitate) 2026-04-14 20:59:16 +02:00
mobile refactor: rename zitare -> quotes (Zitate) 2026-04-14 20:59:16 +02:00
web fix(web): guard PwaUpdatePrompt against SSR navigator access 2026-04-15 15:33:35 +02:00