Initial Commit
This commit is contained in:
23
vite.config.ts
Normal file
23
vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { paraglide } from "@inlang/paraglide-sveltekit/vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit(), paraglide({
|
||||
project: "./project.inlang",
|
||||
outdir: "./src/lib/paraglide"
|
||||
})],
|
||||
server: {
|
||||
// On Prod this is done by NGINX using `proxy_cookie_domain` and `proxy_cookie_path`
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'https://api.barracuda.rossinienergy.com',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
cookieDomainRewrite: "",
|
||||
cookiePathRewrite: "/",
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user