aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vite.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js
index e9765629..2e78e24f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -33,7 +33,7 @@ export default defineConfig(({ mode }) => {
process.env.NODE_ENV === "development"
? {
"/api/": {
- target: "http://localhost:3119",
+ target: process.env.API_URL || "http://localhost:3119",
rewrite: (path) => path.replace(/^\/api\//, ""),
},
}