2023-11-17 21:13:36 -07:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2024-02-17 06:35:51 -07:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
2024-07-18 08:56:27 -07: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 08:30:49 -07:00
|
|
|
|
2022-05-21 00:23:55 -07:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2024-02-17 06:35:51 -07:00
|
|
|
preprocess: vitePreprocess(),
|
2023-06-30 21:50:47 -07:00
|
|
|
kit: {
|
2023-11-17 21:13:36 -07:00
|
|
|
adapter: adapter({
|
|
|
|
fallback: 'index.html',
|
2024-03-08 19:15:38 -07:00
|
|
|
precompress: true,
|
2023-11-17 21:13:36 -07:00
|
|
|
}),
|
2024-01-20 11:47:41 -07:00
|
|
|
alias: {
|
|
|
|
$lib: 'src/lib',
|
|
|
|
'$lib/*': 'src/lib/*',
|
|
|
|
'@test-data': 'src/test-data',
|
|
|
|
},
|
2023-06-30 21:50:47 -07:00
|
|
|
},
|
2022-05-21 00:23:55 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|