2025-03-20 19:57:41 +01:00
|
|
|
import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
2024-08-12 11:00:25 +02:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
2025-01-27 10:21:11 +01:00
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
2024-08-12 11:00:25 +02:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2025-03-20 19:57:41 +01:00
|
|
|
plugins: [
|
|
|
|
|
sveltekit(),
|
|
|
|
|
tailwindcss(),
|
|
|
|
|
paraglideVitePlugin({
|
|
|
|
|
project: './project.inlang',
|
|
|
|
|
outdir: './src/lib/paraglide',
|
2025-05-07 16:43:24 +02:00
|
|
|
cookieName: 'locale',
|
2025-03-20 19:57:41 +01:00
|
|
|
strategy: ['cookie', 'preferredLanguage', 'baseLocale']
|
2025-05-07 16:43:24 +02:00
|
|
|
})
|
2025-05-17 00:36:58 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
server: {
|
2025-05-24 19:52:07 +00:00
|
|
|
host: process.env.HOST,
|
2025-05-17 00:36:58 +02:00
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
2025-05-21 15:11:04 +02:00
|
|
|
target: process.env.DEVELOPMENT_BACKEND_URL || 'http://localhost:1411'
|
|
|
|
|
},
|
|
|
|
|
'/.well-known': {
|
|
|
|
|
target: process.env.DEVELOPMENT_BACKEND_URL || 'http://localhost:1411'
|
2025-05-17 00:36:58 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-12 11:00:25 +02:00
|
|
|
});
|