Skip to content

Commit 1e80e7e

Browse files
committed
call the right api from frontend
1 parent d99c8e3 commit 1e80e7e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/node_to_gh.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [ "main" ]
66

7+
env:
8+
REACT_APP_BASE_URL: "https://83hq7g76ng.execute-api.us-east-1.amazonaws.com/Stage/api/v1/"
9+
710
jobs:
811
build:
912

admin-api-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"web-vitals": "^2.1.4"
2525
},
2626
"scripts": {
27-
"start": "react-scripts start",
27+
"start": "source src/.env && react-scripts start",
2828
"build": "react-scripts build",
2929
"test": "react-scripts test",
3030
"eject": "react-scripts eject"

admin-api-frontend/src/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export REACT_APP_BASE_URL="https://83hq7g76ng.execute-api.us-east-1.amazonaws.com/Stage/api/v1/"

0 commit comments

Comments
 (0)