From 197d7b1e1b1b5e5c5e0bc2ced871203fe8ec6e26 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 6 Apr 2016 19:35:45 -0700 Subject: [PATCH] Use same-domain addresses for API calls --- src/client/client.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client.coffee b/src/client/client.coffee index 8c139f683..5876eaf85 100644 --- a/src/client/client.coffee +++ b/src/client/client.coffee @@ -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}"