getsentry / getsentry/sentry-javascript

[Nuxt 5] Fix SWR tracing

Aperta
#23,383 1 commento 0 reazioni 1 assegnatario Rivendicata da @s1gr1d Vedi su GitHub
javascript
Lingua principale
TypeScript
Stelle
8.7k
Fork
1.8k
Merge medio
1g 17h
PR unite (30g)
515

Descrizione

Currently, the SWR tests are skipped.

The Nitro 3 runtime shows that route rules are now represented as middleware descriptors.
`event.context.routeRules.cache.options.swr === true` rather than `event.context.routeRules.swr === true`

Debugging ideas: Logging the `event.context.routeRules` value in the test assertions. A better long-term solution may be using Nitro's public route-rules lookup API rather than reading internal context shapes.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.