Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
@@ -2457,7 +2457,11 @@ export default async function build(
path.join(SERVER_DIRECTORY, `${INSTRUMENTATION_HOOK_FILENAME}.js`)
)
// If there's edge routes, append the edge instrumentation hook
if (edgeRuntimeAppCount || edgeRuntimePagesCount) {
// Turbopack generates this chunk with a hashed name and references it in middleware-manifest.
if (
!process.env.TURBOPACK &&
(edgeRuntimeAppCount || edgeRuntimePagesCount)
) {
instrumentationHookEntryFiles.push(
path.join(
SERVER_DIRECTORY,

0 comments on commit 530c4a2

Please sign in to comment.