Skip to content

Commit

Permalink
Add default .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubowiczish committed Aug 5, 2020
1 parent 88a5e74 commit 524044b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_API_BASE_URL=http://localhost:8081
REACT_APP_OAUTH2_REDIRECT_URI=http://localhost:3000/oauth2/redirect
CHOKIDAR_USEPOLLING=true
4 changes: 2 additions & 2 deletions src/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const API_BASE_URL = 'http://localhost:8081'
export const API_BASE_URL = process.env.REACT_APP_API_BASE_URL
export const ACCESS_TOKEN = 'accessToken'

export const OAUTH2_REDIRECT_URI = 'http://localhost:3000/oauth2/redirect'
export const OAUTH2_REDIRECT_URI = process.env.REACT_APP_OAUTH2_REDIRECT_URI

export const GOOGLE_AUTH_URL = API_BASE_URL + '/oauth2/authorize/google?redirect_uri=' + OAUTH2_REDIRECT_URI
export const FACEBOOK_AUTH_URL = API_BASE_URL + '/oauth2/authorize/facebook?redirect_uri=' + OAUTH2_REDIRECT_URI
Expand Down

0 comments on commit 524044b

Please sign in to comment.