From 8804c192dbc176ca7983e515310fe7ce4bdb8ab8 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 30 Apr 2026 21:49:08 +0700 Subject: [PATCH] fix: remove SPA fallback so prerendered HTML wins at / With prerender=true on +layout.js, adapter-static emits index.html per route. Setting fallback: 'index.html' overwrites the prerendered home with the SPA bootstrap shell, leaving the live page empty before hydration. Drop the fallback option. --- svelte.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 420be0e..0a07a4a 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -7,7 +7,7 @@ const base = process.env.SITE_BASE ?? '/mathmax'; const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter({ fallback: 'index.html' }), + adapter: adapter(), paths: { base }, }, };