Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
Su Yeon Lee authored and Su Yeon Lee committed Jul 12, 2024
1 parent a50dbed commit 37b3c60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "client",
"version": "1.0.0",
"scripts": {
"start": "node index.js",
"start": "react-scripts start",
"client": "yarn start",
"clean": "rm -rf node_modules",
"dev": "echo \"Please cd into the root directory to run dev \" && exit 1",
Expand Down
4 changes: 2 additions & 2 deletions client/src/util/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ async function resolve(promise: Promise<any>) {
/**
* To UPDATE DURING DEPLOYMENT USING ENVIRONMENT VARIABLES
*/
const BACKENDURL = process.env.PUBLIC_URL
? process.env.PUBLIC_URL
const BACKENDURL = process.env.REACT_APP_BACKEND_URL
? process.env.REACT_APP_BACKEND_URL
: 'http://localhost:4000';

const URLPREFIX = `${BACKENDURL}/api`;
Expand Down

0 comments on commit 37b3c60

Please sign in to comment.