Skip to content

Commit dd33d3d

Browse files
committed
Update startup options
Adds ability to tie the frontend to a local running backend instead of the staging environment
1 parent da1d545 commit dd33d3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"uuid": "^9.0.1"
3232
},
3333
"scripts": {
34-
"start": "PORT=9090 react-scripts start",
34+
"start": "REACT_APP_API_BASE_URL=https://kudo-o-matic-staging.herokuapp.com PORT=9090 react-scripts start",
35+
"start:local": "REACT_APP_API_BASE_URL=http://localhost:3000 PORT=9090 react-scripts start",
3536
"build": "REACT_APP_VERSION=$npm_package_version REACT_APP_GIT_SHA='git rev-parse --short HEAD' react-scripts build",
3637
"test": "react-scripts test",
3738
"eject": "react-scripts eject",

src/config/settings.development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
22
environment: "development",
3-
API_BASE_URL: "https://kudo-o-matic-staging.herokuapp.com",
3+
API_BASE_URL: process.env.REACT_APP_API_BASE_URL,
44
};

0 commit comments

Comments
 (0)