Skip to content

Commit

Permalink
Added experimental parameters for instrumentation tools like Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Jul 28, 2024
1 parent 8624f19 commit 4d944ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const withNextIntl = require( "next-intl/plugin" )( "./utilities/i18n.ts" );
const nextConfig = withNextIntl( {
poweredByHeader: false,
experimental: {
// https://docs.sentry.io/platforms/javascript/guides/nextjs/migration/v7-to-v8/#updated-sdk-initialization
instrumentationHook: true,

// https://github.com/vercel/next.js/discussions/46987#discussioncomment-8464812
serverComponentsExternalPackages: ["pino", "pino-pretty"]
},
Expand Down

0 comments on commit 4d944ca

Please sign in to comment.