Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Oct 27, 2020
1 parent 129ff41 commit fade5d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/next-server/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,7 @@ export async function renderToHTML(
}

const invalidKeys = Object.keys(data).filter(
(key) =>
key !== 'props' && key !== 'unstable_redirect' && key !== 'notFound'
(key) => key !== 'props' && key !== 'redirect' && key !== 'notFound'
)

if ((data as any).unstable_notFound) {
Expand Down

0 comments on commit fade5d4

Please sign in to comment.