René's URL Explorer Experiment


Title: fix(astro): Initialize the server SDK on the first endpoint request by AyeshaWaseemAhmad · Pull Request #25731 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(astro): Initialize the server SDK on the first endpoint request by AyeshaWaseemAhmad · Pull Request #25731 · getsentry/sentry-javascript

X Title: fix(astro): Initialize the server SDK on the first endpoint request by AyeshaWaseemAhmad · Pull Request #25731 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: The server init was only imported through injectScript('page-ssr', ...), which Astro adds to page modules but not to API endpoints. On a server that has not rendered a page yet, getClient()...

X Description: The server init was only imported through injectScript('page-ssr', ...), which Astro adds to page modules but not to API endpoints. On a server that has not rendered a page yet, get...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/25731

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:80092b82-d830-4c96-23f2-6dcae9a1f01b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD0A:298A98:231861D:2DC982F:6B04192F
html-safe-nonce5c454e91add6eca44002db90f364891b7cde4d2b3e910a5a2875a27fa2f741d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDBBOjI5OEE5ODoyMzE4NjFEOjJEQzk4MkY6NkIwNDE5MkYiLCJ2aXNpdG9yX2lkIjoiNjA3MzM4ODgxMjY4NjU5NjM5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac16a0abf9a4125600af0ab89eb222f96e3a6f523348d2b03651fc8c16f303e745
hovercard-subject-tagpull_request:5000765474
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/25731/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fef1bb2684f148ae889d911901dcc8e10174230a45b9887b433d13567428fd4e/getsentry/sentry-javascript/pull/25731
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fef1bb2684f148ae889d911901dcc8e10174230a45b9887b433d13567428fd4e/getsentry/sentry-javascript/pull/25731
og:image:altThe server init was only imported through injectScript('page-ssr', ...), which Astro adds to page modules but not to API endpoints. On a server that has not rendered a page yet, getClient()...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAyeshaWaseemAhmad
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/25731#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F25731
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F25731
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/25731
Reloadhttps://github.com/getsentry/sentry-javascript/pull/25731
Reloadhttps://github.com/getsentry/sentry-javascript/pull/25731
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests59 (59)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
AyeshaWaseemAhmad:fix/astro-init-sdk-before-first-endpoint-requesthttps://github.com/AyeshaWaseemAhmad/sentry-javascript/tree/fix/astro-init-sdk-before-first-endpoint-request
Conversationhttps://github.com/getsentry/sentry-javascript/pull/25731
Commits3 (3)https://github.com/getsentry/sentry-javascript/pull/25731/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/25731/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/25731/files
fix(astro): Initialize the server SDK on the first endpoint requesthttps://github.com/getsentry/sentry-javascript/pull/25731#top
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
AyeshaWaseemAhmad:fix/astro-init-sdk-before-first-endpoint-requesthttps://github.com/AyeshaWaseemAhmad/sentry-javascript/tree/fix/astro-init-sdk-before-first-endpoint-request
https://github.com/AyeshaWaseemAhmad
AyeshaWaseemAhmadhttps://github.com/AyeshaWaseemAhmad
Oct 25, 2026https://github.com/getsentry/sentry-javascript/pull/25731#issue-6019583029
#25729https://github.com/getsentry/sentry-javascript/issues/25729
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/AyeshaWaseemAhmad
AyeshaWaseemAhmadhttps://github.com/AyeshaWaseemAhmad
code ownerhttps://github.com/getsentry/sentry-javascript/blob/eff54dd1727f29bb8cb98686cd98462756d4d42c/.github/CODEOWNERS#L30
October 25, 2026 01:24https://github.com/getsentry/sentry-javascript/pull/25731#event-34158944456
https://github.com/AyeshaWaseemAhmad
AyeshaWaseemAhmadhttps://github.com/AyeshaWaseemAhmad
chargomehttps://github.com/chargome
nicohrubechttps://github.com/nicohrubec
October 25, 2026 01:24https://github.com/getsentry/sentry-javascript/pull/25731#event-34158945422
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Oct 25, 2026https://github.com/getsentry/sentry-javascript/pull/25731#event-34158950748
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Oct 25, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5640933956
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25731/files
cursorhttps://github.com/apps/cursor
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5640933956
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
packages/astro/test/integration/index.test.tshttps://github.com/getsentry/sentry-javascript/pull/25731/files#diff-a56d8ff46b614b643499a2f86f14ec6dc3c76caf6341989e5f6ab61c2b4f5b41
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/logaretm
logaretmhttps://github.com/logaretm
Oct 26, 2026https://github.com/getsentry/sentry-javascript/pull/25731#issuecomment-6423313007
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
#25419https://github.com/getsentry/sentry-javascript/pull/25419
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/Lms24
Lms24https://github.com/Lms24
Oct 28, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5680258209
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25731/files
Lms24https://github.com/Lms24
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5680258209
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@AyeshaWaseemAhmadhttps://github.com/AyeshaWaseemAhmad
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Oct 28, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5680331980
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25731/files
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/25731#pullrequestreview-5680331980
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTphZGFhYTdkNy03NTExLTQzMTktYTY1Yi1mYmRjODRjNGYzZTUiLCJlbmNyeXB0aW9uS2V5IjoiVmdkNGptZTktbTdSR1JCWUx4V2hsQTlBNlRoZk8teWVSYUpXdENxRWpHRSIsImJyYW5jaCI6ImZpeC9hc3Ryby1pbml0LXNkay1iZWZvcmUtZmlyc3QtZW5kcG9pbnQtcmVxdWVzdCIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LWphdmFzY3JpcHQiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot/repository-rules/11898?manageLearning=1
Cursor Bugbothttps://cursor.com/bugbot
d9801aahttps://github.com/getsentry/sentry-javascript/commit/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
packages/astro/src/server/sdk.tshttps://github.com/getsentry/sentry-javascript/pull/25731/files#diff-7bc8ad38c74c90cc566fdf981b60e9956e541a810ef50f900c8d871d583e024f
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
AyeshaWaseemAhmadhttps://github.com/AyeshaWaseemAhmad
November 3, 2026 14:45https://github.com/getsentry/sentry-javascript/pull/25731#commits-pushed-9617c63
https://github.com/AyeshaWaseemAhmad
https://github.com/nicohrubec
fix(astro): Initialize the server SDK on the first endpoint requesthttps://github.com/getsentry/sentry-javascript/pull/25731/commits/9617c636994aab026f883332ca0897c7341057f3
9617c63https://github.com/getsentry/sentry-javascript/pull/25731/commits/9617c636994aab026f883332ca0897c7341057f3
getsentry#25729https://github.com/getsentry/sentry-javascript/issues/25729
https://github.com/Lms24
https://github.com/claude
https://github.com/nicohrubec
fix(astro): Skip server init in edge runtimeshttps://github.com/getsentry/sentry-javascript/pull/25731/commits/455743fe48f957010d3afc5b2656eeb8d1a4c29d
455743fhttps://github.com/getsentry/sentry-javascript/pull/25731/commits/455743fe48f957010d3afc5b2656eeb8d1a4c29d
https://github.com/nicohrubec
https://github.com/codex
style(astro): Format rebase conflict resolutionshttps://github.com/getsentry/sentry-javascript/pull/25731/commits/e6db1b6ab951a5ece62235616587770e410d1da7
e6db1b6https://github.com/getsentry/sentry-javascript/pull/25731/commits/e6db1b6ab951a5ece62235616587770e410d1da7
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5..e6db1b6ab951a5ece62235616587770e410d1da7
d9801aahttps://github.com/getsentry/sentry-javascript/commit/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5
e6db1b6https://github.com/getsentry/sentry-javascript/commit/e6db1b6ab951a5ece62235616587770e410d1da7
Compare https://github.com/getsentry/sentry-javascript/compare/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5..e6db1b6ab951a5ece62235616587770e410d1da7
November 3, 2026 13:48https://github.com/getsentry/sentry-javascript/pull/25731#event-35024819968
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
0b4d12chttps://github.com/getsentry/sentry-javascript/commit/0b4d12cf8948f7bbd031a4599780438fcfcc6dc4
Nov 3, 2026https://github.com/getsentry/sentry-javascript/pull/25731#event-35050672173
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/apps/javascript-sdk-gitflow
javascript-sdk-gitflowhttps://github.com/apps/javascript-sdk-gitflow
Nov 3, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#ref-pullrequest-6188525019
chore: Add external contributor to CHANGELOG.md #26062 https://github.com/getsentry/sentry-javascript/pull/26062
nicohrubechttps://github.com/nicohrubec
Nov 3, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#ref-commit-ebf2f7b
https://github.com/apps/javascript-sdk-gitflow
https://github.com/nicohrubec
chore: Add external contributor to CHANGELOG.md (https://github.com/getsentry/sentry-javascript/commit/ebf2f7b184515ee863581a6e057ae8339140e362
#26062https://github.com/getsentry/sentry-javascript/pull/26062
)https://github.com/getsentry/sentry-javascript/commit/ebf2f7b184515ee863581a6e057ae8339140e362
ebf2f7bhttps://github.com/getsentry/sentry-javascript/commit/ebf2f7b184515ee863581a6e057ae8339140e362
#25731https://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Nov 5, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#ref-issue-6223006180
publish: getsentry/sentry-javascript@11.11.0 getsentry/publish#10234 https://github.com/getsentry/publish/issues/10234
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 5, 2026 https://github.com/getsentry/sentry-javascript/pull/25731#ref-issue-6017714541
bug: sentry for Astro integration does NOT capture errors on API routes #25729 https://github.com/getsentry/sentry-javascript/issues/25729
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F25731
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/25731/files/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5
https://github.com/Lms24
Lms24 https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/25731/files/d9801aacbc5bbba0f24404d70f2370e1dcb9b4e5
https://github.com/chargome
chargome https://github.com/chargome
https://github.com/nicohrubec
nicohrubec https://github.com/nicohrubec
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
bug: sentry for Astro integration does NOT capture errors on API routes https://github.com/getsentry/sentry-javascript/issues/25729
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25731
https://github.com/AyeshaWaseemAhmad
https://github.com/logaretm
https://github.com/Lms24
https://github.com/nicohrubec
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.