Skip to content

Conversation

@rahulchhabria
Copy link
Contributor

<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. -->

## DESCRIBE YOUR PR
This PR introduces a new "Copy for LLM" button to the left of the "View as Markdown" button on documentation pages.

**Why this change?**
As a user, when I click this button, I want to copy all the relevant information on this page so that I can paste it into my LLM of choice.

**How it works:**
*   A new client component, `CopyForLLMButton`, fetches the page's markdown content (`/${pathname}.md`) and copies it to the clipboard.
*   Includes a fallback to copy the markdown URL if the fetch fails.
*   Provides visual feedback (clipboard icon changes to a checkmark) after copying.
*   The button is integrated into the `DocPage` component and is positioned immediately to the left of the "View as Markdown" link.
*   TypeScript configuration has been updated to ensure all type declarations (`@types/react`, `@types/node`, `react-feather`) are correctly resolved, resulting in a clean build.

## 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.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] 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](https://github.com/orgs/getsentry/teams/docs)

## LEGAL BOILERPLATE

<!-- Sentry employees and contractors can delete or ig

@vercel
Copy link

vercel bot commented Jul 12, 2025

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

Name Status Preview Comments Updated (UTC)
develop-docs ❌ Failed (Inspect) Jul 14, 2025 0:43am
sentry-docs ❌ Failed (Inspect) Jul 14, 2025 0:43am

cursor[bot]

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jul 12, 2025

Bundle Report

Changes will increase total bundle size by 1.77MB (7.99%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
sentry-docs-server-cjs 12.09MB 174.82kB (1.47%) ⬆️
sentry-docs-client-array-push 11.4MB 1.58MB (16.12%) ⬆️⚠️
sentry-docs-edge-server-array-push 383.42kB 8.73kB (2.33%) ⬆️

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/main-*.js 100 bytes 2.07kB 5.07% ⚠️
static/chunks/main-*.js 1.28MB 1.41MB 959.3% ⚠️
static/chunks/48cec039-*.js (New) 1.03MB 1.03MB 100.0% 🚀
static/css/*.css 3.0kB 22.09kB 15.69% ⚠️
static/css/*.css 606 bytes 742.05kB 0.08%
static/css/*.css -2.98kB 11.01kB -21.3%
static/chunks/49699944.*.js (New) 442.93kB 442.93kB 100.0% 🚀
static/chunks/8055-*.js (New) 401.01kB 401.01kB 100.0% 🚀
static/chunks/a103c989.*.js (New) 357.85kB 357.85kB 100.0% 🚀
server/app/api/ip-*.js 51.12kB 310.24kB 19.73% ⚠️
server/app/sitemap.xml/route_client-*.js (New) 310.24kB 310.24kB 100.0% 🚀
server/app/robots.txt/route_client-*.js (New) 310.24kB 310.24kB 100.0% 🚀
server/app/_not-*.js 51.12kB 310.24kB 19.73% ⚠️
server/app/[[...path]]/page_client-*.js 51.12kB 310.2kB 19.73% ⚠️
static/chunks/7342.*.js (New) 297.96kB 297.96kB 100.0% 🚀
static/chunks/3194-*.js (New) 286.65kB 286.65kB 100.0% 🚀
server/app/platform-*.js 35.72kB 280.34kB 14.6% ⚠️
static/chunks/1835b391.*.js 31 bytes 274.17kB 0.01%
static/chunks/62f930c0.*.js (New) 250.85kB 250.85kB 100.0% 🚀
static/chunks/7110-*.js (New) 198.21kB 198.21kB 100.0% 🚀
static/chunks/framework-*.js 1.15kB 183.51kB 0.63%
static/chunks/4bd1b696-*.js 1.32kB 169.14kB 0.79%
static/chunks/2327.*.js (New) 156.92kB 156.92kB 100.0% 🚀
static/chunks/349-*.js (New) 123.15kB 123.15kB 100.0% 🚀
static/chunks/52774a7f-*.js 226 bytes 116.73kB 0.19%
static/chunks/5785.*.js (New) 103.02kB 103.02kB 100.0% 🚀
static/chunks/2011-*.js (New) 93.55kB 93.55kB 100.0% 🚀
static/chunks/500.*.js (New) 90.24kB 90.24kB 100.0% 🚀
static/chunks/app/[[...path]]/page-*.js 411 bytes 84.44kB 0.49%
static/chunks/4215.*.js (New) 77.54kB 77.54kB 100.0% 🚀
static/chunks/6281-*.js (New) 72.6kB 72.6kB 100.0% 🚀
static/chunks/6443.*.js (New) 71.92kB 71.92kB 100.0% 🚀
static/chunks/8917.*.js (New) 61.03kB 61.03kB 100.0% 🚀
static/chunks/8772.*.js (New) 46.38kB 46.38kB 100.0% 🚀
static/chunks/1756-*.js (New) 44.61kB 44.61kB 100.0% 🚀
static/chunks/2490.*.js (New) 43.69kB 43.69kB 100.0% 🚀
static/chunks/1540.*.js (New) 39.3kB 39.3kB 100.0% 🚀
static/chunks/7992.*.js (New) 37.05kB 37.05kB 100.0% 🚀
static/chunks/6599.*.js (New) 36.95kB 36.95kB 100.0% 🚀
static/chunks/6266.*.js (New) 34.28kB 34.28kB 100.0% 🚀
static/chunks/1657.*.js (New) 32.09kB 32.09kB 100.0% 🚀
static/chunks/4742.*.js (New) 31.34kB 31.34kB 100.0% 🚀
static/chunks/9986-*.js (New) 28.25kB 28.25kB 100.0% 🚀
static/chunks/2092.*.js (New) 26.17kB 26.17kB 100.0% 🚀
static/chunks/6205.*.js (New) 26.02kB 26.02kB 100.0% 🚀
static/chunks/7325.*.js (New) 24.57kB 24.57kB 100.0% 🚀
static/chunks/190.*.js (New) 24.18kB 24.18kB 100.0% 🚀
static/chunks/5185.*.js (New) 23.93kB 23.93kB 100.0% 🚀
static/chunks/1301.*.js (New) 20.89kB 20.89kB 100.0% 🚀
static/chunks/414-*.js (New) 20.2kB 20.2kB 100.0% 🚀
static/chunks/943.*.js (New) 19.29kB 19.29kB 100.0% 🚀
static/chunks/1073.*.js (New) 13.87kB 13.87kB 100.0% 🚀
static/chunks/app/platform-*.js 42 bytes 13.14kB 0.32%
static/chunks/7469.*.js (New) 12.0kB 12.0kB 100.0% 🚀
static/chunks/1384.*.js (New) 11.94kB 11.94kB 100.0% 🚀
static/chunks/5882.*.js (New) 11.55kB 11.55kB 100.0% 🚀
static/chunks/5040.*.js (New) 11.53kB 11.53kB 100.0% 🚀
static/chunks/5118.*.js (New) 8.46kB 8.46kB 100.0% 🚀
react-*.json 566 bytes 8.27kB 7.35% ⚠️
static/chunks/app/global-*.js 32 bytes 7.17kB 0.45%
server/middleware-*.js 12 bytes 1.01kB 1.2%
server/middleware-*.js 480 bytes 7.03kB 7.32% ⚠️
app-*.json 1.05kB 5.64kB 22.81% ⚠️
static/chunks/webpack-*.js 20 bytes 5.34kB 0.38%
static/chunks/app/layout-*.js 645 bytes 3.24kB 24.87% ⚠️
static/chunks/pages/_error-*.js -6 bytes 2.79kB -0.21%
static/chunks/app/not-*.js -5 bytes 2.74kB -0.18%
/static/media/openai.*.svg 12 bytes 1.53kB 0.79%
/static/media/openai.*.svg 12 bytes 1.83kB 0.66%
static/chunks/app/[[...path]]/layout-*.js 4 bytes 1.36kB 0.3%
static/chunks/8409.*.js (New) 1.16kB 1.16kB 100.0% 🚀
static/chunks/2702.*.js (New) 1.16kB 1.16kB 100.0% 🚀
static/chunks/1459.*.js (New) 1.16kB 1.16kB 100.0% 🚀
static/chunks/pages/_app-*.js -878.6kB 974 bytes -99.89%
static/chunks/2065.*.js (New) 923 bytes 923 bytes 100.0% 🚀
static/chunks/370.*.js (New) 920 bytes 920 bytes 100.0% 🚀
static/chunks/6730.*.js (New) 920 bytes 920 bytes 100.0% 🚀
static/chunks/2266.*.js (New) 918 bytes 918 bytes 100.0% 🚀
static/chunks/635.*.js (New) 918 bytes 918 bytes 100.0% 🚀
static/chunks/8187.*.js (New) 917 bytes 917 bytes 100.0% 🚀
static/chunks/7566.*.js (New) 915 bytes 915 bytes 100.0% 🚀
static/chunks/app/api/ip-*.js 10 bytes 899 bytes 1.12%
static/chunks/app/_not-*.js 10 bytes 899 bytes 1.12%
static/chunks/app/robots.txt/route-*.js (New) 899 bytes 899 bytes 100.0% 🚀
static/chunks/app/sitemap.xml/route-*.js (New) 899 bytes 899 bytes 100.0% 🚀
static/BfWtNzmIn_8_RHApb2JSw/_buildManifest.js (New) 687 bytes 687 bytes 100.0% 🚀
static/BfWtNzmIn_8_RHApb2JSw/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/chunks/bc085c76-*.js (Deleted) -627.63kB 0 bytes -100.0% 🗑️
static/chunks/1831-*.js (Deleted) -422.12kB 0 bytes -100.0% 🗑️
static/chunks/952c863e.*.js (Deleted) -399.92kB 0 bytes -100.0% 🗑️
static/chunks/21f17e4c.*.js (Deleted) -324.08kB 0 bytes -100.0% 🗑️
static/chunks/3641.*.js (Deleted) -280.71kB 0 bytes -100.0% 🗑️
static/chunks/2408-*.js (Deleted) -278.39kB 0 bytes -100.0% 🗑️
static/chunks/353-*.js (Deleted) -276.51kB 0 bytes -100.0% 🗑️
static/chunks/f3e15c50.*.js (Deleted) -240.37kB 0 bytes -100.0% 🗑️
static/chunks/910.*.js (Deleted) -153.64kB 0 bytes -100.0% 🗑️
static/chunks/4926-*.js (Deleted) -120.27kB 0 bytes -100.0% 🗑️
static/chunks/76079dcc.*.js (Deleted) -116.57kB 0 bytes -100.0% 🗑️
static/chunks/0ba0062a.*.js (Deleted) -116.57kB 0 bytes -100.0% 🗑️
static/chunks/5279.*.js (Deleted) -103.17kB 0 bytes -100.0% 🗑️
static/chunks/4820.*.js (Deleted) -90.25kB 0 bytes -100.0% 🗑️
static/chunks/27.*.js (Deleted) -77.17kB 0 bytes -100.0% 🗑️
static/chunks/9212-*.js (Deleted) -73.36kB 0 bytes -100.0% 🗑️
static/chunks/4335.*.js (Deleted) -71.94kB 0 bytes -100.0% 🗑️
static/chunks/3863.*.js (Deleted) -57.63kB 0 bytes -100.0% 🗑️
static/chunks/6127.*.js (Deleted) -44.68kB 0 bytes -100.0% 🗑️
static/chunks/404-*.js (Deleted) -43.6kB 0 bytes -100.0% 🗑️
static/chunks/7755.*.js (Deleted) -43.45kB 0 bytes -100.0% 🗑️
static/chunks/4033.*.js (Deleted) -37.92kB 0 bytes -100.0% 🗑️
static/chunks/7739.*.js (Deleted) -37.04kB 0 bytes -100.0% 🗑️
static/chunks/2288.*.js (Deleted) -34.42kB 0 bytes -100.0% 🗑️
static/chunks/4716.*.js (Deleted) -34.28kB 0 bytes -100.0% 🗑️
static/chunks/7599.*.js (Deleted) -32.19kB 0 bytes -100.0% 🗑️
static/chunks/6691.*.js (Deleted) -29.46kB 0 bytes -100.0% 🗑️
static/chunks/828.*.js (Deleted) -26.22kB 0 bytes -100.0% 🗑️
static/chunks/8834.*.js (Deleted) -24.98kB 0 bytes -100.0% 🗑️
static/chunks/2286.*.js (Deleted) -24.57kB 0 bytes -100.0% 🗑️
static/chunks/2227.*.js (Deleted) -24.12kB 0 bytes -100.0% 🗑️
static/chunks/3628.*.js (Deleted) -23.88kB 0 bytes -100.0% 🗑️
static/chunks/3175.*.js (Deleted) -20.48kB 0 bytes -100.0% 🗑️
static/chunks/4746-*.js (Deleted) -20.32kB 0 bytes -100.0% 🗑️
static/chunks/407.*.js (Deleted) -11.88kB 0 bytes -100.0% 🗑️
static/chunks/2934.*.js (Deleted) -11.82kB 0 bytes -100.0% 🗑️
static/chunks/7740.*.js (Deleted) -9.11kB 0 bytes -100.0% 🗑️
static/chunks/4646.*.js (Deleted) -8.99kB 0 bytes -100.0% 🗑️
static/chunks/1182.*.js (Deleted) -5.88kB 0 bytes -100.0% 🗑️
static/chunks/3140.*.js (Deleted) -1.14kB 0 bytes -100.0% 🗑️
static/chunks/7926.*.js (Deleted) -1.14kB 0 bytes -100.0% 🗑️
static/chunks/9045.*.js (Deleted) -1.14kB 0 bytes -100.0% 🗑️
static/chunks/3072.*.js (Deleted) -925 bytes 0 bytes -100.0% 🗑️
static/chunks/6272.*.js (Deleted) -921 bytes 0 bytes -100.0% 🗑️
static/chunks/2534.*.js (Deleted) -919 bytes 0 bytes -100.0% 🗑️
static/chunks/9241.*.js (Deleted) -917 bytes 0 bytes -100.0% 🗑️
static/chunks/7993.*.js (Deleted) -916 bytes 0 bytes -100.0% 🗑️
static/QMZHrTsVnvKl9wH47tyuj/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/QMZHrTsVnvKl9wH47tyuj/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/app/[[...path]]/page-*.js:

  • ./src/components/codeTabs.tsx → Total Size: 6.74kB

  • ./src/components/expandable/index.tsx → Total Size: 7.29kB

Files in static/chunks/1756-*.js:

  • ./src/components/copyForLLMButton.tsx → Total Size: 2.88kB

Files in static/chunks/414-*.js:

  • ./src/clientUtils.ts → Total Size: 732 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/ 672 bytes 13.15kB 5.38% ⚠️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
7867.js (New) 1.79MB 1.79MB 100.0% 🚀
8391.js (New) 1.06MB 1.06MB 100.0% 🚀
../instrumentation.js -58.01kB 938.77kB -5.82%
7688.js (New) 915.28kB 915.28kB 100.0% 🚀
../app/[[...path]]/page.js.nft.json -15.0kB 690.82kB -2.13%
../app/platform-redirect/page.js.nft.json -15.0kB 690.74kB -2.13%
../app/sitemap.xml/route.js.nft.json -15.11kB 688.6kB -2.15%
../app/[[...path]]/page.js 47.82kB 640.5kB 8.07% ⚠️
984.js (New) 548.02kB 548.02kB 100.0% 🚀
7084.js (New) 442.94kB 442.94kB 100.0% 🚀
5105.js (New) 364.87kB 364.87kB 100.0% 🚀
5911.js (New) 274.19kB 274.19kB 100.0% 🚀
2596.js (New) 192.84kB 192.84kB 100.0% 🚀
7989.js (New) 149.93kB 149.93kB 100.0% 🚀
5250.js (New) 125.29kB 125.29kB 100.0% 🚀
2001.js (New) 103.04kB 103.04kB 100.0% 🚀
3358.js (New) 90.26kB 90.26kB 100.0% 🚀
6484.js (New) 86.33kB 86.33kB 100.0% 🚀
9215.js (New) 77.56kB 77.56kB 100.0% 🚀
1425.js (New) 71.94kB 71.94kB 100.0% 🚀
6141.js (New) 69.59kB 69.59kB 100.0% 🚀
5011.js (New) 61.05kB 61.05kB 100.0% 🚀
10.js (New) 46.39kB 46.39kB 100.0% 🚀
9134.js (New) 43.71kB 43.71kB 100.0% 🚀
6472.js (New) 39.32kB 39.32kB 100.0% 🚀
../app/sitemap.xml/route.js 3.6kB 37.88kB 10.49% ⚠️
9918.js (New) 37.07kB 37.07kB 100.0% 🚀
5009.js (New) 36.97kB 36.97kB 100.0% 🚀
4984.js (New) 34.3kB 34.3kB 100.0% 🚀
../app/platform-redirect/page.js 107 bytes 31.77kB 0.34%
2402.js (New) 31.36kB 31.36kB 100.0% 🚀
2780.js (New) 30.39kB 30.39kB 100.0% 🚀
8766.js (New) 26.19kB 26.19kB 100.0% 🚀
2461.js (New) 26.04kB 26.04kB 100.0% 🚀
7807.js (New) 25.1kB 25.1kB 100.0% 🚀
8979.js (New) 24.59kB 24.59kB 100.0% 🚀
6516.js (New) 24.2kB 24.2kB 100.0% 🚀
1004.js (New) 23.95kB 23.95kB 100.0% 🚀
5739.js (New) 20.91kB 20.91kB 100.0% 🚀
4027.js (New) 20.64kB 20.64kB 100.0% 🚀
3029.js (New) 12.3kB 12.3kB 100.0% 🚀
2354.js (New) 11.96kB 11.96kB 100.0% 🚀
4900.js (New) 11.55kB 11.55kB 100.0% 🚀
1755.js (New) 6.88kB 6.88kB 100.0% 🚀
../../types/cache-life.d.ts -3 bytes 5.86kB -0.05%
../app/api/ip-ranges/route.js -451 bytes 5.64kB -7.4%
5787.js (New) 5.01kB 5.01kB 100.0% 🚀
../app/robots.txt/route.js -425 bytes 4.9kB -7.98%
../app/_not-found/page.js 20 bytes 4.6kB 0.44%
6886.js (New) 4.56kB 4.56kB 100.0% 🚀
../pages/_error.js 2 bytes 4.29kB 0.05%
../pages/_app.js 89 bytes 4.12kB 2.21%
../../static/media/openai.*.svg 12 bytes 1.83kB 0.66%
../../static/media/openai.*.svg 12 bytes 1.53kB 0.79%
4672.js (New) 1.46kB 1.46kB 100.0% 🚀
6723.js (New) 1.18kB 1.18kB 100.0% 🚀
8890.js (New) 1.18kB 1.18kB 100.0% 🚀
1945.js (New) 1.17kB 1.17kB 100.0% 🚀
559.js (New) 908 bytes 908 bytes 100.0% 🚀
9040.js (New) 906 bytes 906 bytes 100.0% 🚀
1453.js (New) 904 bytes 904 bytes 100.0% 🚀
5178.js (New) 904 bytes 904 bytes 100.0% 🚀
3117.js (New) 902 bytes 902 bytes 100.0% 🚀
5518.js (New) 901 bytes 901 bytes 100.0% 🚀
8734.js (New) 901 bytes 901 bytes 100.0% 🚀
../app/robots.txt/route.js.nft.json 37 bytes 260 bytes 16.59% ⚠️
1729.js (Deleted) -1.67MB 0 bytes -100.0% 🗑️
1614.js (Deleted) -1.05MB 0 bytes -100.0% 🗑️
9523.js (Deleted) -972.72kB 0 bytes -100.0% 🗑️
8049.js (Deleted) -520.29kB 0 bytes -100.0% 🗑️
6173.js (Deleted) -399.94kB 0 bytes -100.0% 🗑️
7106.js (Deleted) -328.57kB 0 bytes -100.0% 🗑️
434.js (Deleted) -274.15kB 0 bytes -100.0% 🗑️
4217.js (Deleted) -191.33kB 0 bytes -100.0% 🗑️
8122.js (Deleted) -149.2kB 0 bytes -100.0% 🗑️
5151.js (Deleted) -121.83kB 0 bytes -100.0% 🗑️
5141.js (Deleted) -103.19kB 0 bytes -100.0% 🗑️
3776.js (Deleted) -90.27kB 0 bytes -100.0% 🗑️
9273.js (Deleted) -84.57kB 0 bytes -100.0% 🗑️
2530.js (Deleted) -77.19kB 0 bytes -100.0% 🗑️
875.js (Deleted) -71.96kB 0 bytes -100.0% 🗑️
8548.js (Deleted) -67.9kB 0 bytes -100.0% 🗑️
1419.js (Deleted) -57.65kB 0 bytes -100.0% 🗑️
4167.js (Deleted) -44.7kB 0 bytes -100.0% 🗑️
2657.js (Deleted) -43.47kB 0 bytes -100.0% 🗑️
167.js (Deleted) -37.94kB 0 bytes -100.0% 🗑️
5103.js (Deleted) -37.06kB 0 bytes -100.0% 🗑️
9952.js (Deleted) -34.44kB 0 bytes -100.0% 🗑️
4412.js (Deleted) -34.3kB 0 bytes -100.0% 🗑️
5207.js (Deleted) -32.21kB 0 bytes -100.0% 🗑️
7269.js (Deleted) -29.86kB 0 bytes -100.0% 🗑️
2638.js (Deleted) -26.24kB 0 bytes -100.0% 🗑️
1031.js (Deleted) -25.02kB 0 bytes -100.0% 🗑️
6240.js (Deleted) -25.0kB 0 bytes -100.0% 🗑️
1010.js (Deleted) -24.59kB 0 bytes -100.0% 🗑️
7019.js (Deleted) -24.14kB 0 bytes -100.0% 🗑️
6060.js (Deleted) -23.9kB 0 bytes -100.0% 🗑️
9567.js (Deleted) -20.65kB 0 bytes -100.0% 🗑️
7275.js (Deleted) -20.5kB 0 bytes -100.0% 🗑️
8327.js (Deleted) -11.9kB 0 bytes -100.0% 🗑️
8440.js (Deleted) -11.84kB 0 bytes -100.0% 🗑️
9136.js (Deleted) -4.67kB 0 bytes -100.0% 🗑️
6184.js (Deleted) -4.55kB 0 bytes -100.0% 🗑️
6390.js (Deleted) -1.44kB 0 bytes -100.0% 🗑️
4846.js (Deleted) -1.16kB 0 bytes -100.0% 🗑️
5225.js (Deleted) -1.16kB 0 bytes -100.0% 🗑️
678.js (Deleted) -1.15kB 0 bytes -100.0% 🗑️
7692.js (Deleted) -911 bytes 0 bytes -100.0% 🗑️
7452.js (Deleted) -907 bytes 0 bytes -100.0% 🗑️
5690.js (Deleted) -905 bytes 0 bytes -100.0% 🗑️
4937.js (Deleted) -903 bytes 0 bytes -100.0% 🗑️
1899.js (Deleted) -902 bytes 0 bytes -100.0% 🗑️

Files in ../app/[[...path]]/page.js:

  • ./src/components/codeTabs.tsx → Total Size: 444 bytes

  • ./src/components/codeBlock/index.tsx → Total Size: 1.3kB

  • ./src/components/configValue.tsx → Total Size: 1.96kB

  • ./src/components/expandable/index.tsx → Total Size: 6.81kB

  • ./src/components/expandable/index.tsx → Total Size: 460 bytes

  • ./src/components/codeTabs.tsx → Total Size: 5.8kB

Files in 6484.js:

  • ./src/components/sidebar/index.tsx → Total Size: 5.2kB

  • ./src/components/copyForLLMButton.tsx → Total Size: 2.81kB

  • ./src/components/docPage/index.tsx → Total Size: 10.82kB

  • ./src/components/copyForLLMButton.tsx → Total Size: 484 bytes

Files in 2780.js:

  • ./src/clientUtils.ts → Total Size: 652 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/ 143.31kB 2.76MB 5.49% ⚠️
/[[...path]] 187.01kB 3.33MB 5.95% ⚠️
/platform-redirect 139.3kB 2.72MB 5.4% ⚠️
view changes for bundle: sentry-docs-edge-server-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
src/middleware.js 6.36kB 213.15kB 3.08%
edge-instrumentation.js 2.37kB 160.82kB 1.5%
../types/cache-life.d.ts -3 bytes 5.86kB -0.05%

cursor[bot]

This comment was marked as outdated.

pnpm-lock.yaml Outdated

[email protected]:
resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==}
engines: {

Choose a reason for hiding this comment

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

High severity vulnerability may affect your project—review required:
Line 6651 lists a dependency (next) with a known High severity vulnerability.

ℹ️ Why this matters

Affected versions of next are vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'). A vulnerability in Next.js can enable an attacker to poison the cache. Under certain conditions, a HTTP 204 response may be cached for static pages, causing all subsequent requests to receive an empty response and effectively leading to a Denial of Service condition.

References: GHSA, CVE

To resolve this comment:
Check if you are using ISR with cache revalidation (in next start or standalone mode), and route using SSR, and you are not hosting on Vercel.

  • If you're affected, upgrade this dependency to at least version 15.1.8 at pnpm-lock.yaml.
  • If you're not affected, comment /fp we don't use this [condition]
💬 Ignore this finding

To ignore this, reply with:

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

You can view more details on this finding in the Semgrep AppSec Platform here.

- Fix RefObject type errors by updating function signatures to accept null
- Add proper type guards with isValidElement for React element checks
- Replace JSX.Element with ReactElement imports
- Fix ToggleEventHandler type mismatch in expandable component
- Add missing attributes property to ImportDeclaration type
- Use optional chaining for safer property access

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add explicit type casting for ImportDeclaration in remark-mdx-images
- Use 'as any' type assertion for React element props access
- Fix className and children property access in React components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
cursor[bot]

This comment was marked as outdated.

@codyde codyde force-pushed the cursor/add-copy-for-llm-button-54f6 branch from 407afef to a31f49a Compare July 13, 2025 21:24
- Add missing spaces in React import statements
- Resolve simple-import-sort/imports linting issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

4 participants