Support Void (void.cloud) apps on Cloudflare

Aperta
#26,502 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vite

Direzione di ricerca

Start by reading the Cloudflare SDK setup paths named in the issue: the Vite plugin, automatic Durable Object instrumentation, manual withSentry and instrumentDurableObjectWithSentry, and @sentry/hono. Trace how Void generates its Worker entry and Durable Object classes, then determine which integration point can support those constraints. Done means a documented, working Sentry setup for Void apps that covers the reported Worker and Durable Object limitations.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Cloudflare Workers Feature Waiting for: Product Owner

Void generates the Worker entry and Durable Object classes at build time, so none of the @sentry/cloudflare setups work:

  • Vite plugin: turns itself off, because Void doesn't allow a root wrangler.jsonc. If you point the plugin at Void's generated .void-wrangler.jsonc, it wraps nothing and gives no warning, because that file has no main.
  • Durable Objects: Void exports them as export const X = ….class, a form the auto-instrument transform doesn't wrap.
  • Manual withSentry / instrumentDurableObjectWithSentry: there's nothing to wrap. The entry is regenerated on every build, and defineDurableState() creates the classes internally.
  • @sentry/hono: needs the Hono app instance, which Void middleware never receives.
Lingua principale
TypeScript
Stelle
8.8k
Fork
1.9k
Merge medio
1g 8h
PR unite (30g)
744

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-javascript

Tutte le issue di getsentry/sentry-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.