There was an error while loading. Please reload this page.
1 parent 137b855 commit 20ce34cCopy full SHA for 20ce34c
README.md
@@ -166,10 +166,15 @@ Now, the API will start on port `5000`.
166
**API Server URL** - `src/config/constant.js`
167
168
```javascript
169
-const config = {
170
- ...
171
API_SERVER: 'http://localhost:5001/api/' // <-- The magic line
172
-};
+```
+
+The value can be updated during the build using the environment
173
174
+```bash
175
+$ export REACT_APP_BACKEND_SERVER='http://localhost:5001/api/' # Unix/MacOS
176
+$ set REACT_APP_BACKEND_SERVER='http://localhost:5001/api/' # Windows CMD
177
+$ $env:REACT_APP_BACKEND_SERVER='http://localhost:5001/api/' # Windows PowerShell
178
```
179
180
<br />
0 commit comments