- Replace non-null assertions with runtime checks in org layout queries - Add handleUnseenRoutes: "ignore" for dynamic dashboard routes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
485 B
JavaScript
22 lines
485 B
JavaScript
import adapter from "@sveltejs/adapter-static";
|
|
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: vitePreprocess(),
|
|
kit: {
|
|
adapter: adapter({
|
|
fallback: "index.html", // SPA mode - all routes fall back to index.html
|
|
}),
|
|
paths: {
|
|
base: "",
|
|
},
|
|
prerender: {
|
|
handleHttpError: "warn",
|
|
handleUnseenRoutes: "ignore",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|