Skip to content

Commit

Permalink
Update startup options
Browse files Browse the repository at this point in the history
Adds ability to tie the frontend to a local running backend instead of the staging environment
  • Loading branch information
matthijsgroen committed Sep 26, 2024
1 parent da1d545 commit dd33d3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"uuid": "^9.0.1"
},
"scripts": {
"start": "PORT=9090 react-scripts start",
"start": "REACT_APP_API_BASE_URL=https://kudo-o-matic-staging.herokuapp.com PORT=9090 react-scripts start",
"start:local": "REACT_APP_API_BASE_URL=http://localhost:3000 PORT=9090 react-scripts start",
"build": "REACT_APP_VERSION=$npm_package_version REACT_APP_GIT_SHA='git rev-parse --short HEAD' react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand Down
2 changes: 1 addition & 1 deletion src/config/settings.development.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
environment: "development",
API_BASE_URL: "https://kudo-o-matic-staging.herokuapp.com",
API_BASE_URL: process.env.REACT_APP_API_BASE_URL,
};

0 comments on commit dd33d3d

Please sign in to comment.