Skip to content

Support Cloudflare Vinext (Next.js on Vite/Workers) #19514

Open

Description

@chargome

Cloudflare released vinext, a ground-up reimplementation of the Next.js API as a Vite plugin targeting Cloudflare Workers. It replaces webpack with Vite and runs everything in the workerd runtime.


We're investigating what it would take to support it.

Initial assessment

  • vinext supports instrumentation.ts with the same register() + onRequestError() hooks our Next.js SDK uses
  • @sentry/cloudflare already has first-class Workers support
  • @sentry/vite-plugin should handle source map upload
  • Our webpack/turbopack-based auto-instrumentation (wrapping loaders, route manifest, value injection) won't transfer — needs Vite equivalents
  • Client-side routing instrumentation likely needs adaptation
  • Server-side context propagation between vinext's separate RSC/SSR environments needs investigation

Status

Vinext is still experimental. We'll start with low-cost validation to see how far existing SDKs get us.

Please upvote this issue if you're looking for a solution here!

References

Activity

  1. linear commented on Feb 25, 2026

    @linear
  2. added
    javascript
    on Feb 25, 2026
  3. removed their assignment
    on Apr 10, 2026
  4. JPeer264 commented on Nov 23, 2026

    @JPeer264
    Member

    To have an update in this ticket. We already have support for Vinext - the last thing which is missing is the documentation which is being worked on here: getsentry/sentry-docs#20875

    Once we have merged it we can close this ticket as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Featurejavascript

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions