Initial Commit

This commit is contained in:
2025-03-18 21:57:14 +01:00
commit 0b71434fc5
34 changed files with 4649 additions and 0 deletions

23
vite.config.ts Normal file
View 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: "/",
},
}
}
});