From e642e63fdc958489b003bf634609213def4e9c33 Mon Sep 17 00:00:00 2001 From: Robin Choice Date: Thu, 16 Apr 2026 21:17:59 +0200 Subject: [PATCH] fix: disable SSR for authenticated app pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WaveSurfer.js accesses window/AudioContext at module load time, causing SSR to throw undefined on hard reload of track pages. All (app) routes are auth-gated and fetch data client-side — SSR provides no benefit here. Co-Authored-By: Claude Sonnet 4.6 --- apps/web/src/routes/(app)/+layout.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 apps/web/src/routes/(app)/+layout.ts diff --git a/apps/web/src/routes/(app)/+layout.ts b/apps/web/src/routes/(app)/+layout.ts new file mode 100644 index 0000000..a3d1578 --- /dev/null +++ b/apps/web/src/routes/(app)/+layout.ts @@ -0,0 +1 @@ +export const ssr = false;