mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
6e066aa220
* chore: upgrade svelte * chore: type imports * chore: types
33 lines
746 B
JavaScript
33 lines
746 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import preprocess from 'svelte-preprocess';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: preprocess(),
|
|
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/*',
|
|
'@api': 'src/api',
|
|
'@test-data': 'src/test-data',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|