Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 6, 2021
1 parent 01ba9a4 commit 76c1d0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/server/dev/on-demand-entry-handler.ts
Expand Up @@ -244,11 +244,11 @@ export default function onDemandEntryHandler(
})
}

const isClientOnly = clientOnly || isMiddleware
const isClientOrMiddleware = clientOnly || isMiddleware

const promise = isApiRoute
? addPageEntry('server')
: isClientOnly
: isClientOrMiddleware
? addPageEntry('client')
: Promise.all([
addPageEntry('client'),
Expand All @@ -261,7 +261,7 @@ export default function onDemandEntryHandler(
reportTrigger(
isApiRoute
? `${normalizedPage} (server only)`
: isClientOnly
: isClientOrMiddleware
? `${normalizedPage} (client only)`
: normalizedPage
)
Expand Down

0 comments on commit 76c1d0a

Please sign in to comment.