Skip to content

Commit

Permalink
feat: add .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Mar 8, 2020
1 parent a5d7eb2 commit e8ee611
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_REQUEST_BASE_URL=http://localhost:3000
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_REQUEST_BASE_URL=http://localhost:3000
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ export const QUERY_KEY_FOR_LOGIN_TO = '__from'
*/
export const DEFAULT_NAV_ICON = 'work_outline'

export const REQUEST_BASE_URL = 'http://localhost:3000'
export const REQUEST_BASE_URL = process.env.VUE_APP_REQUEST_BASE_URL

export const REQUEST_TIMEOUT_THRESHOLD = 1000 * 15

0 comments on commit e8ee611

Please sign in to comment.