1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00
immich/web/svelte.config.js

32 lines
1019 B
JavaScript
Raw Normal View History

import adapter from '@sveltejs/adapter-static';
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
// We load the default media receiver app id if no custom one is provided as a build-time env variable
process.env.PUBLIC_IMMICH_CAST_APPLICATION_ID = process.env.PUBLIC_IMMICH_CAST_APPLICATION_ID || 'CC1AD845';
2024-10-23 22:00:32 +02:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
// TODO: migrate all enums to .ts files and remove `{script: true}` once
preprocess: vitePreprocess({ script: true }),
kit: {
adapter: adapter({
fallback: 'index.html',
precompress: true,
}),
alias: {
$lib: 'src/lib',
'$lib/*': 'src/lib/*',
'@test-data': 'src/test-data',
$i18n: '../i18n',
},
},
};
export default config;