Files
publisher-dashboard/apps/publisher-dashboard/svelte.config.js
RevIQ 20475861a5 Fix linter warnings and build issues
- 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>
2026-01-09 18:23:38 +08:00

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;