Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 15, 2022
1 parent 5b9c908 commit 6b1fdeb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/next/build/entries.ts
Expand Up @@ -167,7 +167,7 @@ export async function getPageRuntime(
} else if (type === 'ExportNamedDeclaration') {
// Match `export { getStaticProps | getServerSideProps } <from '../..'>`
const { specifiers } = node
specifiers.some((specifier: any) => {
for (const specifier of specifiers) {
const { orig } = specifier
const hasDataFetchingExports =
specifier.type === 'ExportSpecifier' &&
Expand All @@ -176,10 +176,9 @@ export async function getPageRuntime(
orig?.value === 'getServerSideProps')
if (hasDataFetchingExports) {
isRuntimeRequired = true
return true
break
}
return false
})
}
}
}
} catch (err) {}
Expand Down

0 comments on commit 6b1fdeb

Please sign in to comment.