mirror of
https://github.com/tiennm99/mathmax.git
synced 2026-06-17 16:49:01 +00:00
8804c192db
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.
16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
const base = process.env.SITE_BASE ?? '/mathmax';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: vitePreprocess(),
|
|
kit: {
|
|
adapter: adapter(),
|
|
paths: { base },
|
|
},
|
|
};
|
|
|
|
export default config;
|