Update vite config for new dashboard server location

This commit is contained in:
2025-09-17 21:40:43 -04:00
parent 88f703ec70
commit 4ccda8ad49
2 changed files with 12 additions and 232 deletions

View File

@@ -45,49 +45,51 @@ export default defineConfig(({ mode }) => {
port: 5175,
proxy: {
"/api/aircall": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/klaviyo": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/meta": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/gorgias": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/dashboard-analytics": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace("/api/dashboard-analytics", "/api/analytics"),
cookieDomainRewrite: {
"inventory.kent.pw": "localhost"
},
},
"/api/typeform": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/acot": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
},
"/api/clarity": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
rewrite: (path) => path,
@@ -128,7 +130,7 @@ export default defineConfig(({ mode }) => {
},
},
"/dashboard-auth": {
target: "https://dashboard.kent.pw",
target: "https://inventory.kent.pw",
changeOrigin: true,
secure: false,
ws: true,