mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
e98acc976e
* chore: move translations to root directory * chore: update build processes to work with new i18n location
28 lines
715 B
JavaScript
28 lines
715 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
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';
|
|
|
|
/** @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',
|
|
$i18n: '../i18n',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|