feat(frontend): add support for environment variable NODE_ENV in start script

feat(frontend): change proxy to backend container name
feat(chatModal): add support for environment variable NODE_ENV in WebSocket connection
This commit is contained in:
Gabriel Almeida 2023-04-27 10:16:28 -03:00
commit 1e8f342037
2 changed files with 10 additions and 3 deletions

View file

@ -39,7 +39,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start": "NODE_ENV=development react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
@ -62,5 +62,5 @@
"last 1 safari version"
]
},
"proxy": "http://127.0.0.1:5003"
"proxy": "http://backend:7860"
}