From 3496192653586dd2df45cf79c22c4aecf88354a0 Mon Sep 17 00:00:00 2001 From: Josef Skladanka Date: Jan 14 2019 16:07:15 +0000 Subject: Add oraculumapirul to public env --- diff --git a/public/env.js b/public/env.js index 2606283..8aa5746 100644 --- a/public/env.js +++ b/public/env.js @@ -1,3 +1,4 @@ window.env = { - SUBDIR: '/landing_page' -}; \ No newline at end of file + SUBDIR: '/landing_page', + ORACULUM_API_URL: "http://localhost:5000/api/v0/" +}; diff --git a/src/config.js b/src/config.js index a4bc3db..8aa2a82 100644 --- a/src/config.js +++ b/src/config.js @@ -4,7 +4,7 @@ const durationString = { "72": "Several days", } -const oraculumApiUrl = "http://localhost:5000/api/v0/" +const oraculumApiUrl = window.env.ORACULUM_API_URL; export {