feat: add caddy config
This commit is contained in:
1 parent
17cd31c41e
commit
3aaa3c757f
9 files changed
+90
-8
No files matched your search
@@ -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 },
|
||||
|
||||
Reference in new issue
Block a user