Skip to content
Snippets Groups Projects
Commit 9864f818 authored by esikkala's avatar esikkala
Browse files

Production env: API url based on location.hostname

parent 7dced0c2
No related branches found
No related tags found
No related merge requests found
import { ajax } from 'rxjs/ajax';
import { mergeMap, map, withLatestFrom } from 'rxjs/operators';
import { combineEpics, ofType } from 'redux-observable';
......@@ -16,7 +15,7 @@ import {
const apiUrl = (process.env.NODE_ENV === 'development')
? 'http://localhost:3001/'
: 'http://test.ui.mappingmanuscriptmigrations.org/';
: location.hostname;
const getManuscripts = (action$, state$) => action$.pipe(
ofType(FETCH_MANUSCRIPTS),
......
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