Skip to content

Commit 7abb4ff

Browse files
committed
fix: Move instrumentation files into correct directory
1 parent 164048c commit 7abb4ff

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

next.config.js renamed to next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { withSentryConfig } = require('@sentry/nextjs');
1+
import { withSentryConfig } from '@sentry/nextjs';
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {
@@ -33,4 +33,4 @@ const sentryOptions = {
3333
disableLogger: true,
3434
};
3535

36-
module.exports = withSentryConfig(nextConfig, sentryOptions);
36+
export default withSentryConfig(nextConfig, sentryOptions);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Sentry.init({
77
tracesSampleRate: 1.0,
88
});
99

10+
// Not sure why this is throwing a fit, but it works fine
11+
// eslint-disable-next-line import/namespace
1012
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;

0 commit comments

Comments
 (0)