Skip to content

Commit

Permalink
remove edge entry for api
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 21, 2024
1 parent 6614fb2 commit c983919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/src/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,11 @@ export function finalizeEntrypoint({
}
}
case COMPILER_NAMES.edgeServer: {
const layer = isApi
? WEBPACK_LAYERS.api
: isMiddlewareFilename(name) || isInstrumentation
const layer =
isMiddlewareFilename(name) || isInstrumentation
? WEBPACK_LAYERS.middleware
: undefined

return {
layer,
library: { name: ['_ENTRIES', `middleware_[name]`], type: 'assign' },
Expand Down

0 comments on commit c983919

Please sign in to comment.