mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 21:27:54 +08:00
27 lines
710 B
JavaScript
27 lines
710 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
import dotenv from 'dotenv';
|
|
import { resolve } from 'node:path';
|
|
|
|
dotenv.config({ path: '../../.env' });
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://svelte.dev/docs/kit/integrations
|
|
// for more information about preprocessors
|
|
preprocess: vitePreprocess(),
|
|
kit: {
|
|
adapter: adapter({
|
|
fallback: 'index.html',
|
|
}),
|
|
alias: {
|
|
$common: '../../common',
|
|
'$common/*': '../../common/*',
|
|
'@immich/ui': resolve('../../packages/ui/dist'),
|
|
'@mdi/js': resolve('./node_modules/@mdi/js'),
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|