getsentry / getsentry/sentry-javascript

[Nuxt 5] Fix SWR tracing

Đang mở
#23,383 1 bình luận 0 reaction 1 người được giao Được @s1gr1d nhận Xem trên GitHub
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ả

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.

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.