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:
Till-JS 2026-01-30 16:12:44 +01:00
parent b8ecdb8eb7
commit 3b745cf068

View 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;