You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we document and test only nitro. We should investigate whether our SDK works properly with Cloudflare and document what needs to be done to set this up. Ideally we add an E2E app to test this.
That means that our entrypoint would just import @tanstack/react-start/server-entry, wrap everything and export it
Cloudflare can't have integrations with OpenTelemetry monkey patching, so we need to define which integrations are possible (this could even be a general Cloudflare SDK topic)
I'm currently not sure if it is possible to use Cloudflare specific handlers, such as queue (if so we need to see if we wrap the entrypoint with @sentry/tanstackstart-react or @sentry/cloudflare.
nodejs_compat is required in the compatibility settings
I wouldn't add support for legacy Cloudflare Pages with pages_build_output_dir in the wrangler.jsonc, as everything goes to Cloudflare Workers with its "assets"
Hey guys, I'd love for this to be supported. I'm running a TanStack Start (React) on Cloudflare. I have a custom entrypoint with fetch, queue and scheduled. My fetch has a bunch of logic and then ends up calling @tanstack/react-start/server-entry. I'd argue unobfuscating server functions (like you guys already do here:
How exactly are you running your custom fetch logic in Cloudflare? I'd like to know if there are different techniques for it. Have you already tried to get Sentry up and running with your setup?
How exactly are you running your custom fetch logic in Cloudflare? I'd like to know if there are different techniques for it.
Thanks for the extremely quick reply @JPeer264. I'm using both Cloudflare Sandbox and Dynamic Workers to handle some requests that are not supposed to be passed to Tanstack Start. My endpoint roughly looks like this:
Ok that makes sense, thx for the setup. Could you try to follow the Cloudflare SDK setup? It looks like it could work in that case. The only issue is that Tanstack specific traces wouldn't be there.
Activity
linear commentedon Jan 2, 2026
JS-1388
JPeer264 commentedon Feb 27, 2026
Some thoughts from my side.
start.ts, there is no way around it@tanstack/react-start/server-entry, wrap everything and export it@sentry/tanstackstart-reactor@sentry/cloudflare.nodejs_compatis required in the compatibility settingspages_build_output_dirin thewrangler.jsonc, as everything goes to Cloudflare Workers with its "assets"fix(tanstackstart-react): remove misleading `workerd`/`worker` export…
vmsp commentedon Apr 27, 2026
Hey guys, I'd love for this to be supported. I'm running a TanStack Start (React) on Cloudflare. I have a custom entrypoint with
fetch,queueandscheduled. Myfetchhas a bunch of logic and then ends up calling@tanstack/react-start/server-entry. I'd argue unobfuscating server functions (like you guys already do here:sentry-javascript/packages/tanstackstart-react/src/server/wrapFetchWithSentry.ts
Line 43 in 4c053b6
JPeer264 commentedon Apr 27, 2026
How exactly are you running your custom fetch logic in Cloudflare? I'd like to know if there are different techniques for it. Have you already tried to get Sentry up and running with your setup?
vmsp commentedon Apr 27, 2026
Thanks for the extremely quick reply @JPeer264. I'm using both Cloudflare Sandbox and Dynamic Workers to handle some requests that are not supposed to be passed to Tanstack Start. My endpoint roughly looks like this:
Ideally, I be able to capture errors from
handler.fetch(request),queueandscheduledand ignore everything else but I'll take whatever's feasible.I didn't because I saw this "This setup does not currently work for Cloudflare deployments." on the setup docs: https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/#without---import-flag-eg-vercel-netlify. But I can give it a go.
JPeer264 commentedon Apr 27, 2026
Ok that makes sense, thx for the setup. Could you try to follow the Cloudflare SDK setup? It looks like it could work in that case. The only issue is that Tanstack specific traces wouldn't be there.
test(tanstackstart): Add TanStack Start on Cloudflare Workers test app (