From ed44414cba0fd0d6e3a514845bd2de0d1f8efd6b Mon Sep 17 00:00:00 2001 From: Ryan Noelk Date: Mon, 7 May 2018 10:59:46 -0400 Subject: [PATCH] removing NODE_PORT env var and using location.origin as the default apiHost (#12) --- modules/common/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/common/config.js b/modules/common/config.js index c17ff30b..2e262314 100644 --- a/modules/common/config.js +++ b/modules/common/config.js @@ -1,4 +1,4 @@ -let apiHost = ''; +let apiHost = window.location.origin; if (process.env.NODE_API_URL) { apiHost = process.env.NODE_API_URL; }