René's URL Explorer Experiment


Title: Add tunneling option to @sentry/astro · Issue #10309 · getsentry/sentry-javascript · GitHub

Open Graph Title: Add tunneling option to @sentry/astro · Issue #10309 · getsentry/sentry-javascript

X Title: Add tunneling option to @sentry/astro · Issue #10309 · getsentry/sentry-javascript

Description: Problem Statement I think the Next package has an option for tunneling, it would be great to have the same for Astro Solution Brainstorm Back when I had a look at the docs, there was a snippet with how to create a tunnel endpoint in PHP....

Open Graph Description: Problem Statement I think the Next package has an option for tunneling, it would be great to have the same for Astro Solution Brainstorm Back when I had a look at the docs, there was a snippet with...

X Description: Problem Statement I think the Next package has an option for tunneling, it would be great to have the same for Astro Solution Brainstorm Back when I had a look at the docs, there was a snippet with...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/10309

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tunneling option to @sentry/astro","articleBody":"### Problem Statement\n\nI think the Next package has an option for tunneling, it would be great to have the same for Astro\n\n### Solution Brainstorm\n\nBack when I had a look at the docs, there was a snippet with how to create a tunnel endpoint in PHP. Closest thing I find now is https://docs.sentry.io/platforms/javascript/troubleshooting/#using-the-tunnel-option.\r\n\r\nAnyway, it seems fairly easy with the `injectRoute` utility. Here is what I've done for a project of mine:\r\n\r\n```ts\r\n// src/pages/sy/[...params].ts\r\n\r\nimport type { APIContext } from \"astro\";\r\n\r\nexport const prerender = false;\r\n\r\nexport async function POST({ request }: APIContext) {\r\n  const body = await request.text();\r\n\r\n  let payload: {\r\n    sent_at: string;\r\n    sdk: { name: string; version: string };\r\n    dsn: string;\r\n  };\r\n\r\n  try {\r\n    payload = JSON.parse(body.split(\"\\n\")[0]);\r\n  } catch (err) {\r\n    console.error(err);\r\n    return new Response(null, { status: 400 });\r\n  }\r\n\r\n  if (!payload.dsn) {\r\n    return new Response(\"Invalid request\", { status: 400 });\r\n  }\r\n\r\n  const dsn = new URL(payload.dsn);\r\n  const projectID = dsn.pathname.replace(/\\//g, \"\");\r\n\r\n  if (projectID !== import.meta.env.SECRET_SENTRY_PROJECT_ID) {\r\n    return new Response(\"Invalid request\", { status: 400 });\r\n  }\r\n\r\n  await fetch(`https://sentry.io/api/${projectID}/envelope/`, {\r\n    method: \"POST\",\r\n    headers: {\r\n      \"Content-type\": \"application/x-sentry-envelope\",\r\n    },\r\n    body: JSON.stringify(payload),\r\n  });\r\n\r\n  return new Response(null, { status: 200 });\r\n}\r\n```\r\nIt's not always working so something is probably off. I can contribute this if you can help fix the endpoint logic itself","author":{"url":"https://github.com/florian-lefebvre","@type":"Person","name":"florian-lefebvre"},"datePublished":"2024-01-24T10:09:28Z","url":"https://github.com/getsentry/sentry-javascript/issues/10309"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9deba552-7054-8eaa-c0b2-6c98a1640b12
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idADBE:2F821:1A5BB9:23077B:6B04CC5E
html-safe-nonce4deb2d4e4a40e23080df03bcbe58a920392210e17a151b49b6f88da43af46642
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREJFOjJGODIxOjFBNUJCOToyMzA3N0I6NkIwNENDNUUiLCJ2aXNpdG9yX2lkIjoiMTEzNDY4NjQxMDk5ODMzNjYwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac12a11ad9599d817833521c4a3644b1b2bb3879e7542bdf2fbee774c413055abc
hovercard-subject-tagissue:2097907057
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/10309/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d4d53c6e7cfda95dbefa5492548b4cae198a618b1f8e66f9d50d903191d10c10/getsentry/sentry-javascript/issues/10309
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d4d53c6e7cfda95dbefa5492548b4cae198a618b1f8e66f9d50d903191d10c10/getsentry/sentry-javascript/issues/10309
og:image:altProblem Statement I think the Next package has an option for tunneling, it would be great to have the same for Astro Solution Brainstorm Back when I had a look at the docs, there was a snippet with...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameflorian-lefebvre
hostnamegithub.com
expected-hostnamegithub.com
None27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d
turbo-cache-controlno-preview
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
release63dc19014c621c67306d7899c04c78dcd0d95803
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/10309#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F10309
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%2Fissues%2F10309
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/10309
Reloadhttps://github.com/getsentry/sentry-javascript/issues/10309
Reloadhttps://github.com/getsentry/sentry-javascript/issues/10309
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests51 (51)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
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/10309
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/10309
Add tunneling option to @sentry/astrohttps://github.com/getsentry/sentry-javascript/issues/10309#top
https://github.com/florian-lefebvre
Astrohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Astro%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com/florian-lefebvre
florian-lefebvrehttps://github.com/florian-lefebvre
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#issue-2097907057
https://docs.sentry.io/platforms/javascript/troubleshooting/#using-the-tunnel-optionhttps://docs.sentry.io/platforms/javascript/troubleshooting/#using-the-tunnel-option
Nexthttps://github.com/getsentry/sentry-javascript/issues/10309?timeline_page=1
florian-lefebvrehttps://github.com/florian-lefebvre
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11582160418
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11582160834
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-14874173321
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309
https://github.com/Lms24
Lms24https://github.com/Lms24
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#issuecomment-1907916712
@florian-lefebvrehttps://github.com/florian-lefebvre
this PRhttps://github.com/getsentry/sentry-docs/pull/8144/files
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11582933554
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309
Lms24https://github.com/Lms24
Package: Astrohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20Astro%22
Type: Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Feature%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11582943874
https://github.com/florian-lefebvre
florian-lefebvrehttps://github.com/florian-lefebvre
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#issuecomment-1907945656
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11583137761
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309
Lms24https://github.com/Lms24
florian-lefebvrehttps://github.com/florian-lefebvre
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11583347539
Lms24https://github.com/Lms24
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11583389759
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11583696041
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309
https://github.com/Lms24
Lms24https://github.com/Lms24
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#issuecomment-1908458903
envelope payload specificationhttps://develop.sentry.dev/sdk/envelopes/
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11586591197
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309
florian-lefebvrehttps://github.com/florian-lefebvre
on Jan 25, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-11594198530
feat(astro): add tunnelRoute option (getsentry#10309)https://github.com/florian-lefebvre/sentry-javascript/commit/87ea857d3a700a00545a7f823bed148fbfa2592a
getsentry#10309https://github.com/getsentry/sentry-javascript/issues/10309
87ea857https://github.com/florian-lefebvre/sentry-javascript/commit/87ea857d3a700a00545a7f823bed148fbfa2592a
AbhiPrasadhttps://github.com/AbhiPrasad
Type: Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Feature%22
on Apr 24, 2024https://github.com/getsentry/sentry-javascript/issues/10309#event-12594023369
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/10309#event-17159572734
linearhttps://github.com/apps/linear
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/10309#event-17159600454
stephanie-andersonhttps://github.com/stephanie-anderson
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
on Apr 8, 2025https://github.com/getsentry/sentry-javascript/issues/10309#event-17167313770
stephanie-andersonhttps://github.com/stephanie-anderson
Astrohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Astro%22
Package: astrohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20astro%22
on Apr 16, 2025https://github.com/getsentry/sentry-javascript/issues/10309#event-17296046309
stephanie-andersonhttps://github.com/stephanie-anderson
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=type:"Improvement"
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/10309#event-19106504032
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/10309
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/10309
florian-lefebvrehttps://github.com/florian-lefebvre
Astrohttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Astro%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.