You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(nextjs): Move webpack build config under webpack namespace (#15691)
We are moving the only-webpack related configurations under `webpack`
namespace to better fit our goal of communicating the SDK readiness for
Turbopack by default.
This involved moving several options to be nested under a `webpack` path
in the build configuration.
This is meant to be released once this
getsentry/sentry-javascript#18343 goes live, so
I will keep this open until then. Will keep it in draft as well.
The SDK PR adds warnings for those deprecated options and warns users
about using them if detected so I don't think we need to do that here
once it goes live.
---------
Co-authored-by: Sarah Mischinger <sarah@codingwriter.com>
Automatically create cron monitors in Sentry for your Vercel Cron Jobs if configured via `vercel.json`.
212
+
<Alertlevel="info"title="Version support">
213
+
You can use this option with Next.js version 15.4.1 and later.
214
+
</Alert>
215
+
216
+
Enables the use of the [`runAfterProductionCompile` hook from Next.js](https://nextjs.org/docs/architecture/nextjs-compiler#runafterproductioncompile) to upload sourcemaps after the build is completed.
217
+
218
+
- This option is set to `true` by default for Turbopack as there are no alternative ways to upload sourcemaps here.
219
+
- This option is set to `false` for Webpack as the default behavior is to upload sourcemaps during the build process using the [Sentry Webpack Plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins).
220
+
221
+
**Important:** Enabling this option will mutate your Next.js build output by injecting [Debug IDs](/platforms/javascript/guides/nextjs/sourcemaps/troubleshooting_js/debug-ids/) via the Sentry CLI. If you are relying on any sort of integrity hashes for your build artifacts, you will need to disable this option.
257
222
258
223
</SdkOption>
259
224
@@ -272,37 +237,59 @@ The route manifest is a build-time generated mapping of your Next.js App Router
Enables React component name tracking. When enabled, it annotates React components with data attributes that allow Sentry to track which components users interacted with in features like Session Replay and breadcrumbs.
242
+
<Alertlevel="info">
243
+
These options only take effect if you're using Webpack. If you're using
You can use this option with Next.js version 15.4.1 and later.
291
-
</Alert>
261
+
Automatically instrument components in the `app` directory with error monitoring.
292
262
293
-
Enables the use of the [`runAfterProductionCompile` hook from Next.js](https://nextjs.org/docs/architecture/nextjs-compiler#runafterproductioncompile) to upload sourcemaps after the build is completed.
263
+
</SdkOption>
294
264
295
-
- This option is set to `true` by default for Turbopack as there are no alternative ways to upload sourcemaps here.
296
-
- This option is set to `false` for Webpack as the default behavior is to upload sourcemaps during the build process using the [Sentry Webpack Plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins).
Exclude specific server-side API routes or pages from automatic Sentry instrumentation during build time.
267
+
This option takes an array of strings or regular expressions and affects pages in the `pages` and `app` directories.
297
268
298
-
**Important:** Enabling this option will mutate your Next.js build output by injecting [Debug IDs](/platforms/javascript/guides/nextjs/sourcemaps/troubleshooting_js/debug-ids/) via the Sentry CLI. If you are relying on any sort of integrity hashes for your build artifacts, you will need to disable this option.
269
+
When defining routes, note the following:
270
+
271
+
- Specify pages as routes and not as file system paths. For example, write `/animals` instead of `pages/animals/index.js`.
272
+
- Make sure that any provided string matches the route exactly, has a leading slash, and doesn't have a trailing slash.
Enables React component name tracking. When enabled, it annotates React components with data attributes that allow Sentry to track which components users interacted with in features like Session Replay and breadcrumbs.
0 commit comments