Commit 826739ff authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Use logger only in development

parent dc6ea972
......@@ -5,11 +5,9 @@ import voronoiReducer from '../components/voronoi/voronoiSlice';
import queryReducer from '../components/navbar/querySlice';
import searchReducer from '../components/search/searchSlice';
import yearRangeReducer from '../components/yearrange/yearRangeSlice';
import config from '../config';
const middleware = [
...getDefaultMiddleware(),
// logger,
];
const middleware = [...getDefaultMiddleware(), ...(config.ENV.IS_PRODUCTION ? [] : [logger])];
export default configureStore({
reducer: {
......
......@@ -16,6 +16,7 @@ const YEARS = {
};
export default {
ENV,
LOG_LEVEL: 'DEBUG', // one of 'DEBUG', 'INFO', or 'NONE'
MIMIR_API,
YEARS,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment