Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit 61a6e7b

Browse files
committed
fix some bugs
1 parent c2cfbb5 commit 61a6e7b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎configs/env.mapping.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ require('dotenv').config({
55
});
66
const { dependencies } = require('../package-lock.json');
77

8+
const FOLDER = process.env.FOLDER || '';
9+
810
// env mapping for exposure to client
911
module.exports = {
1012
TEST_CLIENT: process.env.test,
1113
TEST_PAGE_VAR: process.env.TEST_PAGE_VAR,
1214
ENV: process.env.NODE_ENV,
13-
FOLDER: process.env.FOLDER||'',
14-
LINK_PREFIX: `/${process.env.FOLDER}`||'',
15+
FOLDER,
16+
LINK_PREFIX: FOLDER&&`/${FOLDER}`,
1517
THEME_COLOR: process.env.THEME_COLOR || '',
1618
MANIEFST_PATH: process.env.MANIEFST_PATH || '',
1719
ICON_192_PATH: process.env.ICON_192_PATH || '',

‎src/utils/redux/withRedux.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ function serveStore<S>({
8181

8282
function withRedux<S = Store>({
8383
makeStore,
84-
config: opitonalConfig={},
84+
...opitonalConfig
8585
}: {
8686
makeStore: MakeStore<S>;
87-
config?: Partial<WithReduxConfig>;
88-
}) {
87+
} & Partial<WithReduxConfig>) {
8988
const config: WithReduxConfig = {
9089
...defaultConfig,
9190
...opitonalConfig,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /