Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
♻️ refactor: title, favicon 설정, 스토어 프로덕션 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
minsgy committed Dec 21, 2021
1 parent c3b5d2e commit 57c2e5a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
10 changes: 7 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css" />
<title>React App</title>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"
/>
<title>정담 - 공유 가족 일기 서비스</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand All @@ -34,7 +38,7 @@
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
ㄴYou can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
Expand Down
12 changes: 10 additions & 2 deletions src/redux/store.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { member } from './member';
import { album } from './album';
import { persistReducer, persistStore } from 'redux-persist';
import { combineReducers } from 'redux';
import { isProduction } from '@utils/constants';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import session from 'redux-persist/lib/storage/session';
Expand All @@ -21,10 +22,17 @@ const combinedReducer = combineReducers({
});
const rootReducer = persistReducer(persistConfig, combinedReducer);

let middleware = [];

if (!isProduction) {
middleware = [...middleware, thunk, logger];
} else {
middleware = [...middleware, thunk];
}

export const store = configureStore({
reducer: rootReducer,
middleware: [logger, thunk],
devTools: process.env.NODE_ENV !== 'production',
middleware: middleware,
});

export const persistor = persistStore(store);

0 comments on commit 57c2e5a

Please # to comment.