getsentry / getsentry/sentry-javascript

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

Đang mở
#19,514 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Feature javascript
Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
1.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
515

Mô tả

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

* [https://github.com/cloudflare/vinext]()
* [https://blog.cloudflare.com/vinext/]()

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.