diff --git a/src/client/epics/index.js b/src/client/epics/index.js index ec90bbdc8da32f6290fce4d83640c89138638e75..6c48755f23e6be6367f31101ba3c43024f936bb4 100644 --- a/src/client/epics/index.js +++ b/src/client/epics/index.js @@ -1,4 +1,3 @@ - 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),