use an env variable for proxy.

This commit is contained in:
2021-08-09 16:26:39 +02:00
parent 1fc83ea8c7
commit 6efdd6fb17
+1 -1
View File
@@ -76,7 +76,7 @@ export default {
spa: "public/index.html",
port: 5000,
proxy: {
"/api/*": "localhost:8000",
"/api/*": process.env.API_PROXY_TARGET || "localhost:8000",
},
}),