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.
1 parent bbfdf42 commit 507ca50Copy full SHA for 507ca50
examples/playground15/instrumentation.js
@@ -6,13 +6,13 @@ export function register() {
6
const timeout = setTimeout(() => {
7
console.log("This is a delayed log from the instrumentation register callback");
8
}, 0);
9
- // This is to test that we have access to the node version of setTimeout
10
- timeout.unref();
11
- clearTimeout(timeout);
12
13
if (process.env.NEXT_RUNTIME === "nodejs") {
14
globalThis["__NODEJS_INSTRUMENTATION_SETUP"] =
15
"this value has been set by calling the instrumentation `register` callback in the nodejs runtime";
+ // This is to test that we have access to the node version of setTimeout
+ timeout.unref();
+ clearTimeout(timeout);
16
}
17
18
if (process.env.NEXT_RUNTIME === "edge") {
0 commit comments