Skip to content

Fix Sentry source map uploads for Cloudflare builds - #1558

Merged
manudeli merged 1 commit into
mainfrom
manudeli/fix-sentry-source-maps
Nov 22, 2026
Merged

manudeli merged 1 commit into
mainfrom
manudeli/fix-sentry-source-maps

Conversation

@manudeli

Copy link
Copy Markdown
Collaborator

Summary

  • Load the Sentry upload token during production Vite builds. Cloudflare previews skip the upload, and production builds log a warning if the token is missing.
  • Generate hidden browser source maps and exclude .map files from Cloudflare's public assets. Keep external maps for Worker uploads.

Verification

  • A production build with a mock Sentry CLI verified matching Debug IDs for 1,637 browser and Worker source maps.
  • Wrangler's deploy dry run confirmed that it excludes browser source maps from the public asset manifest.

Rollout

Confirm that SENTRY_AUTH_TOKEN is set under Settings → Build → Build variables and secrets for the tanstack-com Worker. After the next production build, verify the upload in Sentry Source Maps.

@manudeli
manudeli requested a review from a team November 22, 2026 17:21
@changeset-bot

changeset-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 70db41c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 391c4251-9880-40a7-b6d6-2819ee0e1257
Commits

Reviewing files that changed from the base of the PR and between 8c1e50a and 70db41c.

Files selected for processing: 3

  • docs/cloudflare-workers-migration.md
  • public/.assetsignore
  • vite.config.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19580.19 KiB 19580.19 KiB 0.00 KiB (0.00%)
JavaScript (gzip) 6443.22 KiB 6443.56 KiB 🔴 +0.34 KiB (+0.01%)
CSS 831.83 KiB 831.83 KiB 0.00 KiB (0.00%)
CSS (gzip) 127.01 KiB 127.01 KiB 0.00 KiB (0.00%)
Page Main (gzip) PR merge build (gzip) Change
/ 596.09 KiB 596.10 KiB 🔴 +0.00 KiB (+0.00%)
/libraries 538.78 KiB 538.78 KiB 🟢 -0.00 KiB (-0.00%)
/start/latest 563.55 KiB 563.57 KiB 🔴 +0.02 KiB (+0.00%)
/router/latest 563.85 KiB 563.87 KiB 🔴 +0.02 KiB (+0.00%)
/query/latest 562.30 KiB 562.32 KiB 🔴 +0.02 KiB (+0.00%)
/table/latest 595.11 KiB 595.12 KiB 🔴 +0.01 KiB (+0.00%)
/charts/latest 644.42 KiB 644.42 KiB 🔴 +0.00 KiB (+0.00%)
/ai/latest 589.21 KiB 589.24 KiB 🔴 +0.02 KiB (+0.00%)
Docs article 549.84 KiB 549.84 KiB 🟢 -0.00 KiB (-0.00%)
Framework docs article 549.84 KiB 549.84 KiB 🟢 -0.00 KiB (-0.00%)
/blog 542.98 KiB 542.98 KiB 🟢 -0.00 KiB (-0.00%)
/maintainers 542.08 KiB 542.07 KiB 🟢 -0.00 KiB (-0.00%)
/showcase 540.04 KiB 540.04 KiB 🟢 -0.01 KiB (-0.00%)
/chat 538.50 KiB 538.50 KiB 🟢 -0.00 KiB (-0.00%)
/chat/c/:conversationId 539.21 KiB 539.21 KiB 🟢 -0.00 KiB (-0.00%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at 8c1e50a. Gzip sizes are summed per file. Build run

@manudeli
manudeli merged commit 3038b0e into main Nov 22, 2026
11 checks passed
@manudeli
manudeli deleted the manudeli/fix-sentry-source-maps branch November 22, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants