Skip to content
Snippets Groups Projects
Commit 46160d6e authored by Esko Ikkala's avatar Esko Ikkala
Browse files

Set hipla api url according to NODE_ENV

parent b269ccbd
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment