Skip to content

Commit 76d60a0

Browse files
authored
feat(nextjs): Set global attribute for turbopack usage (#20558)
leftover from #20527
1 parent 75c8d0a commit 76d60a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/nextjs/src/server/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export function init(options: NodeOptions): NodeClient | undefined {
284284
// @ts-expect-error `process.turbopack` is a magic string that will be replaced by Next.js
285285
if (process.turbopack) {
286286
getGlobalScope().setTag('turbopack', true);
287+
getGlobalScope().setAttribute('turbopack', true);
287288
}
288289
} catch {
289290
// Noop

0 commit comments

Comments
 (0)