mirror of
https://github.com/immich-app/data.immich.app.git
synced 2026-09-30 13:23:26 +08:00
22 lines
478 B
TypeScript
22 lines
478 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
const apiHost = process.env.IMMICH_BACKEND || 'https://data.immich.app/';
|
|
|
|
console.log(`Connecting to ${apiHost}`);
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), sveltekit()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: apiHost,
|
|
secure: true,
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|