Skip to content

Commit

Permalink
fix cond
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 15, 2022
1 parent 690092f commit 5b9c908
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/next/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,13 @@ export async function getPageRuntime(
const hasDataFetchingExports =
specifier.type === 'ExportSpecifier' &&
orig?.type === 'Identifier' &&
orig?.value === 'getStaticProps' &&
orig?.value === 'getServerSideProps'
if (hasDataFetchingExports) isRuntimeRequired = true
(orig?.value === 'getStaticProps' ||
orig?.value === 'getServerSideProps')
if (hasDataFetchingExports) {
isRuntimeRequired = true
return true
}
return false
})
}
}
Expand Down

0 comments on commit 5b9c908

Please sign in to comment.