Skip to content

Commit 20ce34c

Browse files
committed
Update README.md
1 parent 137b855 commit 20ce34c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,15 @@ Now, the API will start on port `5000`.
166166
**API Server URL** - `src/config/constant.js`
167167

168168
```javascript
169-
const config = {
170-
...
171169
API_SERVER: 'http://localhost:5001/api/' // <-- The magic line
172-
};
170+
```
171+
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
173178
```
174179

175180
<br />

0 commit comments

Comments
 (0)