Use same-domain addresses for API calls

This commit is contained in:
Andrew Miner
2016-04-06 19:35:45 -07:00
parent cdb2989c0a
commit 197d7b1e1b
+2 -2
View File
@@ -42,11 +42,11 @@ switch global.hostName
when 'staging.crafting-guide.com'
global.env = 'staging'
logger.level = Logger.VERBOSE
apiBaseUrl = 'https://crafting-guide-staging.herokuapp.com'
apiBaseUrl = 'https://api-staging.crafting-guide.com'
when 'crafting-guide.com'
global.env = 'production'
logger.level = Logger.INFO
apiBaseUrl = 'https://crafting-guide-production.herokuapp.com'
apiBaseUrl = 'https://api.crafting-guide.com'
else
throw new Error "cannot determine the environment of: #{window.location.hostname}"