Skip to content

Commit 8dd7cc8

Browse files
fix: Change default API based on environment (#5245)
1 parent 38585c4 commit 8dd7cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function(environment) {
2828
},
2929

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

0 commit comments

Comments
 (0)