2023-11-18 06:13:36 +02:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2024-02-17 15:35:51 +02:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
2024-07-18 17:56:27 +02:00
|
|
|
import dotenv from 'dotenv';
|
|
|
|
|
|
|
|
dotenv.config();
|
|
|
|
|
|
|
|
process.env.PUBLIC_IMMICH_BUY_HOST = process.env.PUBLIC_IMMICH_BUY_HOST || 'https://buy.immich.app';
|
|
|
|
process.env.PUBLIC_IMMICH_PAY_HOST = process.env.PUBLIC_IMMICH_PAY_HOST || 'https://pay.futo.org';
|
2022-09-08 17:30:49 +02:00
|
|
|
|
2022-05-21 09:23:55 +02:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2024-11-14 17:41:11 +02:00
|
|
|
preprocess: vitePreprocess(),
|
2023-07-01 06:50:47 +02:00
|
|
|
kit: {
|
2023-11-18 06:13:36 +02:00
|
|
|
adapter: adapter({
|
|
|
|
fallback: 'index.html',
|
2024-03-09 04:15:38 +02:00
|
|
|
precompress: true,
|
2023-11-18 06:13:36 +02:00
|
|
|
}),
|
2024-01-20 20:47:41 +02:00
|
|
|
alias: {
|
|
|
|
$lib: 'src/lib',
|
|
|
|
'$lib/*': 'src/lib/*',
|
|
|
|
'@test-data': 'src/test-data',
|
2024-10-22 17:39:28 +02:00
|
|
|
$i18n: '../i18n',
|
2024-01-20 20:47:41 +02:00
|
|
|
},
|
2023-07-01 06:50:47 +02:00
|
|
|
},
|
2022-05-21 09:23:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|