From 46160d6ed4beca7e0be61d446f8593c082f762bc Mon Sep 17 00:00:00 2001 From: Esko Ikkala <esko.ikkala@aalto.fi> Date: Tue, 12 Jun 2018 16:57:20 +0300 Subject: [PATCH] Set hipla api url according to NODE_ENV --- src/client/epics/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/epics/index.js b/src/client/epics/index.js index 281158ef..f715b5d7 100644 --- a/src/client/epics/index.js +++ b/src/client/epics/index.js @@ -15,7 +15,9 @@ import { GET_GEOJSON_FAILED } from '../actions'; -const hiplaApiUrl = 'http://localhost:3001/'; +const hiplaApiUrl = (process.env.NODE_ENV === 'development') + ? 'http://localhost:3001/' + : 'http://193.166.25.181:3005/'; const getSuggestionsEpic = (action$, store) => { const searchUrl = hiplaApiUrl + 'suggest'; -- GitLab