Skip to content

Commit

Permalink
call the right api from frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik327 committed Apr 18, 2024
1 parent d99c8e3 commit 1e80e7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/node_to_gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "main" ]

env:
REACT_APP_BASE_URL: "https://83hq7g76ng.execute-api.us-east-1.amazonaws.com/Stage/api/v1/"

jobs:
build:

Expand Down
2 changes: 1 addition & 1 deletion admin-api-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start": "source src/.env && react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
1 change: 1 addition & 0 deletions admin-api-frontend/src/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export REACT_APP_BASE_URL="https://83hq7g76ng.execute-api.us-east-1.amazonaws.com/Stage/api/v1/"

0 comments on commit 1e80e7e

Please sign in to comment.