mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 00:41:09 +02:00
fix(mana/web): disable prerender on /offline (FIXME)
The SvelteKit prerender worker throws "Error: 500 /offline" with no usable stack trace, blocking the production build. Suspected cause: a module-level side-effect on the shared layout that fails when no `window` is available — likely from one of the new vault-client or data-layer-listeners imports that landed in the encryption phase 4-6 sprints. SSR'ing /offline at request time is harmless — it's just a static "you're offline" message — so this is a safe workaround that unblocks the deploy. The real fix is to bisect which import on the offline codepath throws on the bare server and add a `typeof window` guard or move it to onMount. Without this, the unified mana-web image cannot be rebuilt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5d4123d2b0
commit
de33ed8687
1 changed files with 10 additions and 1 deletions
|
|
@ -1 +1,10 @@
|
|||
export const prerender = true;
|
||||
// FIXME: prerender is disabled because the SvelteKit prerender worker
|
||||
// throws "Error: 500 /offline" with no usable stack trace during the
|
||||
// production build. Suspected cause: a module-level side-effect on the
|
||||
// shared layout (vault-client? data-layer-listeners?) that fails when
|
||||
// no `window` is available. SSR'ing the offline page at request time
|
||||
// is harmless — it's a static "you're offline" message — but the real
|
||||
// fix is to find which import throws on the bare server and guard it.
|
||||
//
|
||||
// First observed: 2026-04-07 during Memoro recording pipeline deploy.
|
||||
export const prerender = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue