We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
edge-instrumentation.js
1 parent 2aa59ed commit 530c4a2Copy full SHA for 530c4a2
packages/next/src/build/index.ts
@@ -2457,7 +2457,11 @@ export default async function build(
2457
path.join(SERVER_DIRECTORY, `${INSTRUMENTATION_HOOK_FILENAME}.js`)
2458
)
2459
// If there's edge routes, append the edge instrumentation hook
2460
- if (edgeRuntimeAppCount || edgeRuntimePagesCount) {
+ // Turbopack generates this chunk with a hashed name and references it in middleware-manifest.
2461
+ if (
2462
+ !process.env.TURBOPACK &&
2463
+ (edgeRuntimeAppCount || edgeRuntimePagesCount)
2464
+ ) {
2465
instrumentationHookEntryFiles.push(
2466
path.join(
2467
SERVER_DIRECTORY,
0 commit comments