Skip to content

Commit

Permalink
fix: fix redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Dec 11, 2023
1 parent 7a36432 commit ca7eb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/app/prepare/preparePageMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const pageMapEntries = [${pageMapEntries}];
export const redirectsMap = new Map(
pageMapEntries
.flatMap(([path, , , , redirects]) => redirects.map((redirect) => [redirect, path])),
.flatMap(([path, , , , redirects = []]) => redirects.map((redirect) => [redirect, path])),
);
export const pagesMap = new Map(
Expand Down

0 comments on commit ca7eb8c

Please sign in to comment.