Skip to content

Commit c457df7

Browse files
authored
Merge pull request Servatom#143 from yash22arora/main
Separate API url for prod and dev
2 parents e307920 + 4a76558 commit c457df7

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

frontend/.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_API_ENDPOINT = https://notefy-test.herokuapp.com

frontend/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_API_ENDPOINT = https://notefyapi.servatom.com

frontend/src/URL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
const URL = 'https://notefyapi.servatom.com';
2+
const URL = process.env.REACT_APP_API_ENDPOINT;
33

44
export default URL;

0 commit comments

Comments
 (0)