Skip to content

Conversation

@codyde
Copy link
Contributor

@codyde codyde commented Aug 30, 2025

Summary

  • Fixed broken Hydrogen link in Cloudflare index page that was causing 404s
  • Updated link from frameworks/hydrogen/ to frameworks/hydrogen-react-router/

Context

The Cloudflare index page was linking to frameworks/hydrogen/ which doesn't exist, causing users to hit 404 errors. The content was moved to separate pages for different Hydrogen versions:

  • hydrogen-react-router/ for newer Hydrogen versions (2025.5.0+)
  • hydrogen-remix/ for legacy versions

This PR points to the current version (hydrogen-react-router/) to resolve the 404 issue.

Test plan

  • Verified the target page exists at frameworks/hydrogen-react-router/
  • Checked that this resolves the 404 alerts for /platforms/javascript/guides/cloudflare/frameworks/hydrogen/

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Aug 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
develop-docs Ready Ready Preview Comment Aug 31, 2025 0:54am
sentry-docs Ready Ready Preview Comment Aug 31, 2025 0:54am

cursor[bot]

This comment was marked as outdated.

Comment on lines 55 to 64
span.setStatus?.("error");
Sentry.captureException(error);
} finally {
span.finish?.();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Potential bug: Documentation examples use incorrect Sentry SDK v8 APIs. span.setStatus is passed a string instead of an object, and deprecated span.finish() is used, breaking tracing functionality for users.
  • Description: The documentation examples for span metrics use incorrect Sentry SDK v8 APIs. Specifically, span.setStatus is called with a string like "error" instead of the required object format, e.g., { code: 2 }. Additionally, the examples call span.finish?.(), which is a deprecated method from SDK v7; the correct method is span.end(). Furthermore, manual span finishing is unnecessary as Sentry.startSpan() automatically ends the span when its callback completes. This will cause users who copy these examples to have broken or non-functional tracing, as statuses will not be set correctly.

  • Suggested fix: Replace span.setStatus?.("error") with span.setStatus({ code: 2 }) and span.setStatus?.("cancelled") with the appropriate status object. Remove all calls to the deprecated and unnecessary span.finish?.() method, as Sentry.startSpan() automatically manages the span's lifecycle. Remove optional chaining from setStatus calls.
    severity: 0.72, confidence: 0.95

Did we get this right? 👍 / 👎 to inform future reviews.

@codecov
Copy link

codecov bot commented Aug 30, 2025

Bundle Report

Changes will increase total bundle size by 375 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.9MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.54MB 381 bytes (0.0%) ⬆️

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 -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/3X59SDYFoqIiKsX3bBp-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/3X59SDYFoqIiKsX3bBp-*.js (New) 684 bytes 684 bytes 100.0% 🚀
static/d9DRNGf6C415yFMtKfmok/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/d9DRNGf6C415yFMtKfmok/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.78MB -0.0%
../instrumentation.js -3 bytes 1.1MB -0.0%
9523.js -3 bytes 1.08MB -0.0%
../app/[[...path]]/page.js.nft.json 130 bytes 783.82kB 0.02%
../app/platform-redirect/page.js.nft.json 130 bytes 783.74kB 0.02%
../app/sitemap.xml/route.js.nft.json 130 bytes 781.21kB 0.02%

- Update Cloudflare index to point hydrogen link to correct page
- Add redirect from old hydrogen URL to current hydrogen-react-router page

This resolves 404 alerts for /platforms/javascript/guides/cloudflare/frameworks/hydrogen/

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

Co-Authored-By: Claude <[email protected]>
@codyde codyde merged commit cd32d62 into master Aug 31, 2025
15 checks passed
@codyde codyde deleted the fix-cloudflare-hydrogen-link branch August 31, 2025 00:54
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2025
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