Skip to content

Conversation

@logaretm
Copy link
Collaborator

@logaretm logaretm commented Nov 27, 2025

I won't merge this yet as it partially needs getsentry/sentry-javascript#18336 to be released, but I wanted some initial opinions.

This PR adds new information about supporting Next.js deployments on Cloudflare Workers via Cloudflare's official OpenNext adapter.

During my investigation of Cloudflare Workers not sending any errors or traces for Next.js apps, I found out that it was because Cloudflare workers didn't support https.request module until recently which would've prevented the SDK from sending anything. Setting the compat date alone fixes most of the sending issues.

So I wanted to document this information so users are able to find it more easily.

My findings can be verified by checking out this repo and try setting the compat date to anything below August 16th. You don't need a cloudflare account, just wranger dev should give you a similar environment locally to verify that.


Question for reviewers: Should this live in special guides like I did here? or maybe add it to the manual setup?

@vercel
Copy link

vercel bot commented Nov 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Nov 27, 2025 2:23pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Nov 27, 2025 2:23pm

@codecov
Copy link

codecov bot commented Nov 28, 2025

Bundle Report

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

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 24.8MB 672 bytes (0.0%) ⬆️
sentry-docs-client-array-push 10.22MB -6 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 893.1kB -0.0%
static/chunks/9366-*.js -3 bytes 436.99kB -0.0%
server/middleware-*.js 6.46kB 7.46kB 645.5% ⚠️
server/middleware-*.js -6.46kB 1.0kB -86.59%
static/ZSr7O1urKJ2BUWgUaGiPQ/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/ZSr7O1urKJ2BUWgUaGiPQ/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/nqm6A74xPzr4rwqrvKq8e/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/nqm6A74xPzr4rwqrvKq8e/_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 5.5MB -0.0%
6529.js -3 bytes 4.92MB -0.0%
../instrumentation.js -3 bytes 4.82MB -0.0%
../app/[[...path]]/page.js.nft.json 227 bytes 1.06MB 0.02%
../app/platform-redirect/page.js.nft.json 227 bytes 1.06MB 0.02%
../app/sitemap.xml/route.js.nft.json 227 bytes 1.06MB 0.02%

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