mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 00:29:40 +02:00
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> |
||
|---|---|---|
| .. | ||
| landing | ||
| mobile | ||
| web | ||