aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-06-27 11:21:57 -0700
committerAdam Soltys <[email protected]>2024-06-27 11:21:57 -0700
commit05bf9c3b2c80129d7eb6bef16df83dd6a356d200 (patch)
tree0dc0b25b8c1f83cab6ce3e9188e457c14610eddc
parentcf3e179bdbdf043fc20eae170723458d0dfbf981 (diff)
downloadcoinos-ui-05bf9c3b2c80129d7eb6bef16df83dd6a356d200.tar.gz
coinos-ui-05bf9c3b2c80129d7eb6bef16df83dd6a356d200.zip
remove prod proxy
-rw-r--r--vite.config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/vite.config.js b/vite.config.js
index 88ac65cb..79fe1130 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -12,12 +12,12 @@ const config = {
},
},
server: {
- proxy: {
- "/api": {
+ proxy: process.env.NODE_ENV === 'development' ? {
+ "/api/": {
target: "http://localhost:3119",
- rewrite: (path) => path.replace(/^\/api/, ""),
+ rewrite: (path) => path.replace(/^\/api\//, ""),
},
- },
+ } : undefined,
},
};