Skip to content

Commit

Permalink
fix missing config
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Oct 19, 2022
1 parent b298aa8 commit 50dcdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/server/app-render.tsx
Expand Up @@ -947,8 +947,8 @@ export async function renderToHTMLOrFlight(
? await page()
: undefined

if (layoutOrPageMod?.config) {
defaultRevalidate = layoutOrPageMod.config.revalidate
if (typeof layoutOrPageMod?.revalidate !== 'undefined') {
defaultRevalidate = layoutOrPageMod.revalidate

if (isStaticGeneration && defaultRevalidate === 0) {
const { DynamicServerError } =
Expand Down

0 comments on commit 50dcdcf

Please sign in to comment.