Skip to content

Commit b800133

Browse files
fix
1 parent 7e2cfc9 commit b800133

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/redirect/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const generatePage = (url, title, path_) => {
6767

6868
generatePage(redirectConfig.url, redirectConfig.title);
6969

70-
redirectConfig.paths.forEach(({ path_, url, title }) => {
71-
generatePage(url, title, path_);
72-
});
70+
if (redirectConfig.paths) {
71+
redirectConfig.paths.forEach(({ path_, url, title }) => {
72+
generatePage(url, title, path_);
73+
});
74+
}

0 commit comments

Comments
 (0)