Fix vue config when using docker

This commit is contained in:
Gaëtan L
2023-02-16 16:48:29 +01:00
parent 7c5b43a990
commit c983be490a
3 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -2,7 +2,10 @@ module.exports = {
devServer: {
proxy: {
"/api": {
target: "http://localhost:8000/",
target:
process.env.DOCKER == "yes"
? "http://api:8000/"
: "http://localhost:8000",
},
},
},