You are currently viewing the Pages Router documentation for version 14 of Next.js.
instrumentationHook
The experimental instrumentationHook
option allows you to set up instrumentation via the instrumentation
file in your Next.js App.
next.config.js
module.exports = {
experimental: {
instrumentationHook: true,
},
}
Was this helpful?