mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
ba55e867e0
* perf: precompress and cache assets * fix cache header * use startswith --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
21 lines
443 B
JavaScript
21 lines
443 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',
|
|
precompress: true,
|
|
}),
|
|
alias: {
|
|
$lib: 'src/lib',
|
|
'$lib/*': 'src/lib/*',
|
|
'@test-data': 'src/test-data',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|