mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
da1a11b5ce
this prevents a blank page from showing up when a user visits a non-existing page on a static build
31 lines
836 B
JavaScript
31 lines
836 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
// for more information about preprocessors
|
|
preprocess: vitePreprocess(),
|
|
|
|
kit: {
|
|
adapter: adapter({
|
|
// default options are shown. On some platforms
|
|
// these options are set automatically — see below
|
|
pages: 'build',
|
|
assets: 'build',
|
|
fallback: undefined,
|
|
precompress: false,
|
|
strict: true
|
|
}),
|
|
paths: {
|
|
relative: false
|
|
},
|
|
alias: {
|
|
$components: 'src/components',
|
|
$i18n: 'i18n',
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|