mirror of
https://github.com/tiennm99/mathmax.git
synced 2026-06-17 14:48:38 +00:00
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:
+1
-1
@@ -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 },
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user