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.
This commit is contained in:
2026-04-30 21:49:08 +07:00
parent 7b75a72a16
commit 8804c192db
+1 -1
View File
@@ -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 },
},
};