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 373110b commit aea7bb7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/next/src/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,10 @@ export function finalizeEntrypoint({
}
}
case COMPILER_NAMES.edgeServer: {
const layer = isApi
? WEBPACK_LAYERS.api
: isMiddlewareFilename(name) || isInstrumentation
? WEBPACK_LAYERS.middleware
: undefined
const layer = isMiddlewareFilename(name)
? WEBPACK_LAYERS.middleware
: undefined

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

0 comments on commit aea7bb7

Please sign in to comment.