Skip to content

move manual setup source maps options - #12783

Merged
inventarSarah merged 3 commits into
masterfrom
smi/nextjs/source-maps-add-content
Feb 25, 2025
Merged

inventarSarah merged 3 commits into
masterfrom
smi/nextjs/source-maps-add-content

Conversation

@inventarSarah

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

In the process of reworking the Next.js Manual Setup page, we need to move content to other places.

This PR focuses on the "Source Map" related information from the setup page.
What I did:

  • removed "Disable Source maps" completely
  • removed "Use hidden-source-map" completely
    • hideSourceMaps options was removed from the SDK
  • moved content from "Widen the Upload Scope"
  • linked to the Build Options from the Source Maps page

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

EXTRA RESOURCES

@vercel

vercel Bot commented Feb 20, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2025 10:56am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 10:56am
develop-docs ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 10:56am

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

`@sentry/nextjs` will generate and upload source maps automatically, in order to enable errors to have readable stack traces.

To upload source maps, the `@sentry/nextjs` SDK uses the [Sentry webpack plugin](https://www.npmjs.com/package/@sentry/webpack-plugin) under the hood. See the [Manual Configuration](../manual-setup/#configure-source-maps) page and the Sentry [webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin) for more details. If you are using Vercel, then you can also use the [Vercel integration](/organization/integrations/deployment/vercel/) to upload source maps during deployments automatically.
To upload source maps, the `@sentry/nextjs` SDK uses the [Sentry webpack plugin](https://www.npmjs.com/package/@sentry/webpack-plugin) under the hood. See the [Build Options](../configuration/build/#source-maps-options) page and the Sentry [webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin) for more details. If you are using Vercel, then you can also use the [Vercel integration](/organization/integrations/deployment/vercel/) to upload source maps during deployments automatically.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: I feel there are too many links here, let's just link once to the webpack documentation (after the build page)!

@codecov

codecov Bot commented Feb 25, 2025 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 14.86kB (0.07%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.19MB -9 bytes (-0.0%) ⬇️
sentry-docs-client-array-push* 9.39MB 14.87kB (0.16%) ⬆️

ℹ️ *Bundle size includes cached data from a previous commit

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -2.7kB 865.35kB -0.31%
static/chunks/bc085c76-*.js 120 bytes 627.75kB 0.02%
static/chunks/1298-*.js (New) 401.61kB 401.61kB 100.0% 🚀
static/chunks/952c863e.*.js 114 bytes 400.04kB 0.03%
static/chunks/21f17e4c.*.js 117 bytes 324.2kB 0.04%
static/chunks/3641.*.js 113 bytes 280.82kB 0.04%
static/chunks/2408-*.js 114 bytes 278.5kB 0.04%
static/chunks/1835b391.*.js 113 bytes 274.25kB 0.04%
server/app/_not-*.js 760 bytes 251.54kB 0.3%
server/app/[[...path]]/page_client-*.js 760 bytes 251.5kB 0.3%
static/chunks/5075-*.js 115 bytes 246.53kB 0.05%
static/chunks/f3e15c50.*.js 113 bytes 240.48kB 0.05%
server/app/platform-*.js 760 bytes 236.93kB 0.32%
static/chunks/framework-*.js 115 bytes 182.47kB 0.06%
static/chunks/4bd1b696-*.js 113 bytes 167.93kB 0.07%
static/chunks/910.*.js 113 bytes 153.75kB 0.07%
static/chunks/7921-*.js (New) 140.89kB 140.89kB 100.0% 🚀
static/chunks/main-*.js 12 bytes 1.93kB 0.63%
static/chunks/main-*.js 113 bytes 118.36kB 0.1%
static/chunks/76079dcc.*.js 113 bytes 116.69kB 0.1%
static/chunks/0ba0062a.*.js 113 bytes 116.69kB 0.1%
static/chunks/e27a9f8b-*.js (New) 116.66kB 116.66kB 100.0% 🚀
static/chunks/5279.*.js 113 bytes 103.28kB 0.11%
static/chunks/4820.*.js 113 bytes 90.37kB 0.13%
static/chunks/27.*.js 113 bytes 77.28kB 0.15%
static/chunks/9212-*.js 113 bytes 73.15kB 0.15%
static/chunks/app/[[...path]]/page-*.js 110 bytes 72.45kB 0.15%
static/chunks/4335.*.js 113 bytes 72.05kB 0.16%
static/chunks/3863.*.js 113 bytes 57.74kB 0.2%
static/chunks/6127.*.js 113 bytes 44.79kB 0.25%
static/chunks/7755.*.js 113 bytes 43.57kB 0.26%
static/chunks/4744-*.js (New) 42.19kB 42.19kB 100.0% 🚀
static/chunks/4033.*.js 113 bytes 38.03kB 0.3%
static/chunks/7739.*.js 113 bytes 37.15kB 0.31%
static/chunks/2288.*.js 113 bytes 34.54kB 0.33%
static/chunks/4716.*.js 113 bytes 34.4kB 0.33%
static/chunks/7599.*.js 113 bytes 32.31kB 0.35%
static/chunks/6691.*.js 113 bytes 29.57kB 0.38%
static/chunks/828.*.js 113 bytes 26.33kB 0.43%
static/chunks/8834.*.js 113 bytes 25.09kB 0.45%
static/chunks/2286.*.js 113 bytes 24.68kB 0.46%
static/chunks/2227.*.js 113 bytes 24.23kB 0.47%
static/chunks/3628.*.js 113 bytes 23.99kB 0.47%
static/chunks/3175.*.js 113 bytes 20.6kB 0.55%
static/chunks/4258-*.js (New) 20.04kB 20.04kB 100.0% 🚀
static/chunks/0e5ce63c-*.js 113 bytes 18.27kB 0.62%
static/chunks/app/platform-*.js 115 bytes 12.81kB 0.91%
static/chunks/407.*.js 113 bytes 11.99kB 0.95%
static/chunks/2934.*.js 113 bytes 11.93kB 0.96%
static/chunks/7740.*.js 113 bytes 9.22kB 1.24%
static/chunks/4646.*.js 113 bytes 9.1kB 1.26%
static/chunks/app/global-*.js 113 bytes 7.25kB 1.58%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/chunks/1182.*.js 113 bytes 6.0kB 1.92%
static/chunks/webpack-*.js 113 bytes 5.44kB 2.12%
app-*.json 2 bytes 4.19kB 0.05%
static/chunks/app/not-*.js 113 bytes 2.86kB 4.11%
static/chunks/pages/_error-*.js 112 bytes 2.78kB 4.2%
static/chunks/app/layout-*.js 113 bytes 2.71kB 4.36%
static/chunks/app/[[...path]]/layout-*.js 115 bytes 1.38kB 9.08% ⚠️
static/chunks/3140.*.js 113 bytes 1.25kB 9.93% ⚠️
static/chunks/7926.*.js 113 bytes 1.25kB 9.93% ⚠️
static/chunks/9045.*.js 113 bytes 1.25kB 9.94% ⚠️
static/chunks/3072.*.js 113 bytes 1.04kB 12.22% ⚠️
static/chunks/6272.*.js 113 bytes 1.03kB 12.27% ⚠️
static/chunks/2534.*.js 113 bytes 1.03kB 12.3% ⚠️
static/chunks/9241.*.js 113 bytes 1.03kB 12.32% ⚠️
static/chunks/7993.*.js 113 bytes 1.03kB 12.34% ⚠️
static/chunks/app/_not-*.js 113 bytes 998 bytes 12.77% ⚠️
static/6NKASzjI8PJ-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/6NKASzjI8PJ-*.js (New) 578 bytes 578 bytes 100.0% 🚀
static/chunks/4028-*.js (Deleted) -393.3kB 0 bytes -100.0% 🗑️
static/chunks/4719-*.js (Deleted) -140.78kB 0 bytes -100.0% 🗑️
static/chunks/52774a7f-*.js (Deleted) -116.5kB 0 bytes -100.0% 🗑️
static/chunks/818-*.js (Deleted) -42.08kB 0 bytes -100.0% 🗑️
static/chunks/4746-*.js (Deleted) -19.93kB 0 bytes -100.0% 🗑️
static/ISTZ9smiFHvYEELI3v9Ko/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/ISTZ9smiFHvYEELI3v9Ko/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

App Routes Affected:

App Route Size Change Total Size Change (%)
/ 339 bytes 12.82kB 2.72%
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.46MB -0.0%
../instrumentation.js -3 bytes 791.26kB -0.0%
9523.js -3 bytes 767.46kB -0.0%

@inventarSarah
inventarSarah merged commit db8ca2e into master Feb 25, 2025
@inventarSarah
inventarSarah deleted the smi/nextjs/source-maps-add-content branch February 25, 2025 10:58
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 13, 2025

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 8817bf51 Deployed Feb 25, 2025 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants