Skip to content

Commit

Permalink
Update environment files to use REACT_APP_SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
storrisi committed Oct 8, 2018
1 parent e88cee2 commit 7459778
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL='https://dev-api.clearlydefined.io'
REACT_APP_SERVER='https://dev-api.clearlydefined.io'
2 changes: 1 addition & 1 deletion .env.local
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL='https://localhost:4000'
REACT_APP_SERVER='https://localhost:4000'
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL='https://api.clearlydefined.io'
REACT_APP_SERVER='https://api.clearlydefined.io'
2 changes: 1 addition & 1 deletion src/api/clearlyDefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import 'whatwg-fetch'
import { toPairs } from 'lodash'

export const apiHome = process.env.REACT_APP_SERVER || process.env.REACT_APP_API_URL
export const apiHome = process.env.REACT_APP_SERVER

const CURATIONS = 'curations'
const HARVEST = 'harvest'
Expand Down

0 comments on commit 7459778

Please sign in to comment.