mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 16:39:39 +02:00
fix(matrix-web): disable SSR for app routes to fix $state error
Svelte 5 runes in @manacore/shared-ui components were not being transformed correctly during SSR, causing "$state is not defined" errors. Since matrix-js-sdk requires browser APIs anyway, disabling SSR for the (app) routes is the correct solution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b8ecdb8eb7
commit
3b745cf068
1 changed files with 4 additions and 0 deletions
4
apps/matrix/apps/web/src/routes/(app)/+layout.ts
Normal file
4
apps/matrix/apps/web/src/routes/(app)/+layout.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Disable SSR for all (app) routes
|
||||
// matrix-js-sdk requires browser APIs and shared-ui uses Svelte 5 runes
|
||||
// that need client-side compilation
|
||||
export const ssr = false;
|
||||
Loading…
Add table
Add a link
Reference in a new issue