feat: add caddy config

This commit is contained in:
h
2026-06-02 01:22:58 +02:00
parent 17cd31c41e
commit 3aaa3c757f
9 changed files with 90 additions and 8 deletions
+4
View File
@@ -3,6 +3,9 @@ import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
const proxyTarget = process.env.API_PROXY_TARGET ?? "http://127.0.0.1:8080";
const allowedHosts = process.env.ALLOWED_HOSTS
? process.env.ALLOWED_HOSTS.split(",")
: undefined;
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
@@ -14,6 +17,7 @@ export default defineConfig({
},
},
server: {
allowedHosts,
proxy: {
"/api": { target: proxyTarget, changeOrigin: true },
"/mcp": { target: proxyTarget, changeOrigin: true },