mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
31 lines
744 B
JavaScript
31 lines
744 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: vitePreprocess(),
|
|
onwarn: (warning, handler) => {
|
|
if (warning.code.includes('a11y')) {
|
|
return;
|
|
}
|
|
handler(warning);
|
|
},
|
|
kit: {
|
|
adapter: adapter({
|
|
// default options are shown. On some platforms
|
|
// these options are set automatically — see below
|
|
pages: 'build',
|
|
assets: 'build',
|
|
fallback: 'index.html',
|
|
precompress: false,
|
|
strict: true,
|
|
}),
|
|
alias: {
|
|
$lib: 'src/lib',
|
|
'$lib/*': 'src/lib/*',
|
|
'@test-data': 'src/test-data',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|