24 lines
470 B
JavaScript
24 lines
470 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',
|
|
}),
|
|
paths: {
|
|
base: '',
|
|
},
|
|
prerender: {
|
|
handleHttpError: ({ path, message }) => {
|
|
if (path === '/favicon.png') return;
|
|
throw new Error(message);
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|