getsentry / getsentry/sentry-javascript

[Nuxt 5] Fix SWR tracing

Open
#23,383 1 comment 0 reactions 1 assignee Claimed by @s1gr1d View on GitHub
javascript
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.