Skip to content

Commit 1d8a85e

Browse files
authored
docs(js): Add Next.js build option disableManifestInjection (#14362)
1 parent 2d02c50 commit 1d8a85e

File tree

1 file changed

+14
-0
lines changed
  • docs/platforms/javascript/guides/nextjs/configuration/build

1 file changed

+14
-0
lines changed

docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,20 @@ Automatically create cron monitors in Sentry for your Vercel Cron Jobs if config
254254

255255
</SdkOption>
256256

257+
<SdkOption name="disableManifestInjection" type="boolean|undefined" defaultValue="false">
258+
259+
Disables automatic injection of the route manifest into the client bundle.
260+
261+
The route manifest is a build-time generated mapping of your Next.js App Router routes that enables Sentry to group transactions by parameterized route names (e.g., `/users/:id` instead of `/users/123`, `/users/456`, etc.).
262+
263+
**Disable this option if:**
264+
- You want to minimize client bundle size
265+
- You're experiencing build issues related to route scanning
266+
- You prefer raw URLs in transaction names
267+
- You're only using the Pages Router (this feature is only supported in the App Router)
268+
269+
</SdkOption>
270+
257271
<SdkOption
258272
name="unstable_sentryWebpackPluginOptions"
259273
type="SentryWebpackPluginOptions"

0 commit comments

Comments
 (0)