Skip to content

Commit dff7004

Browse files
author
Luca Forstner
committed
sadness
1 parent d77edf2 commit dff7004

File tree

3 files changed

+10
-33
lines changed

3 files changed

+10
-33
lines changed

dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function register() {
1111
transportOptions: {
1212
bufferSize: 10_000,
1313
},
14+
debug: true,
1415
});
1516
}
1617
}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
// This file sets a custom webpack configuration to use your Next.js app
2-
// with Sentry.
3-
// https://nextjs.org/docs/api-reference/next.config.js/introduction
4-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
5-
61
const { withSentryConfig } = require('@sentry/nextjs');
72

83
/** @type {import('next').NextConfig} */
9-
const nextConfig = {};
4+
const nextConfig = {
5+
experimental: {
6+
instrumentationHook: true,
7+
},
8+
};
109

11-
// Make sure adding Sentry options is the last code to run before exporting, to
12-
// ensure that your source maps include changes from all other Webpack plugins
1310
module.exports = withSentryConfig(nextConfig, {
1411
silent: true,
1512
});
Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
// This file sets a custom webpack configuration to use your Next.js app
2-
// with Sentry.
3-
// https://nextjs.org/docs/api-reference/next.config.js/introduction
4-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
5-
61
const { withSentryConfig } = require('@sentry/nextjs');
72

8-
const moduleExports = {
3+
/** @type {import('next').NextConfig} */
4+
const nextConfig = {
95
experimental: {
106
appDir: true,
117
serverActions: true,
128
},
139
};
1410

15-
const sentryWebpackPluginOptions = {
16-
// Additional config options for the Sentry Webpack plugin. Keep in mind that
17-
// the following options are set automatically, and overriding them is not
18-
// recommended:
19-
// release, url, org, project, authToken, configFile, stripPrefix,
20-
// urlPrefix, include, ignore
21-
22-
silent: true, // Suppresses all logs
23-
// For all available options, see:
24-
// https://github.com/getsentry/sentry-webpack-plugin#options.
25-
26-
// We're not testing source map uploads at the moment.
27-
dryRun: true,
28-
};
29-
30-
// Make sure adding Sentry options is the last code to run before exporting, to
31-
// ensure that your source maps include changes from all other Webpack plugins
32-
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions, {
33-
hideSourceMaps: true,
11+
module.exports = withSentryConfig(nextConfig, {
12+
silent: true,
3413
});

0 commit comments

Comments
 (0)