NEXT_RUNTIME

An environment variable Next.js sets to nodejs or edge so code can tell which runtime it is running in.

In more detail

Next.js sets it on the server before your code runs. register() checks it to load Node-only instrumentation only in the Node.js runtime.

Related terms

Taught in

References