Update vite config for new dashboard server location
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user