Skip to content

Commit

Permalink
fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 2, 2022
1 parent 3775ccc commit 2afeee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getPageRuntime(
filename: pageFilePath,
isModule: true,
})
body.filter((node: any) => {
body.forEach((node: any) => {
const { type, declaration } = node
const valueNode = declaration?.declarations?.[0]
if (type === 'ExportDeclaration' && valueNode?.id?.value === 'config') {
Expand Down Expand Up @@ -206,7 +206,7 @@ export function createEntrypoints(
const globalRuntime = config.experimental.runtime
const edgeRuntime = globalRuntime === 'edge'

Object.keys(pages).map((page) => {
Object.keys(pages).forEach((page) => {
const absolutePagePath = pages[page]
const bundleFile = normalizePagePath(page)
const isApiRoute = page.match(API_ROUTE)
Expand Down

0 comments on commit 2afeee5

Please sign in to comment.