riprap-nyc / web /sveltekit /svelte.config.js
seriffic's picture
Frontend overhaul: Lit kickoff → Svelte 5 custom elements → SvelteKit design-system
e8a6c67
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({
pages: 'build',
assets: 'build',
fallback: '200.html',
precompress: false,
strict: false
}),
paths: {
base: ''
},
alias: {
$lib: 'src/lib'
},
prerender: {
handleMissingId: 'ignore',
handleHttpError: 'warn'
}
}
};
export default config;