nextjs / latest / app / api-reference / next-config-js / instrumentationhook.html

instrumentationHook

The experimental instrumentationHook option allows you to set up instrumentation via the instrumentation file in your Next.js App.

module.exports = {
  experimental: {
    instrumentationHook: true,
  },
}

© 2024 Vercel, Inc.
Licensed under the MIT License.
https://nextjs.org/docs/app/api-reference/next-config-js/instrumentationHook