Skip to content

Commit

Permalink
fix: Change default API based on environment (#5245)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal authored Oct 6, 2020
1 parent 38585c4 commit 8dd7cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function(environment) {
},

APP: {
apiHost : process.env.API_HOST || 'https://api.eventyay.com',
apiHost : process.env.API_HOST || (environment === 'production' ? 'https://api.eventyay.com' : 'https://open-event-api-dev.herokuapp.com'),
apiNamespace : process.env.API_NAMESPACE || 'v1'
},

Expand Down

1 comment on commit 8dd7cc8

@vercel
Copy link

@vercel vercel bot commented on 8dd7cc8 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.