playbook/antigravity-awesome-skills/plugins/antigravity-awesome-skills-.../skills/vercel-optimize/references/support-topics/nuxt-route-rules-cache-isr.md

1.2 KiB

id title status candidateKinds frameworks priority citations maxBriefChars
nuxt-route-rules-cache-isr Nuxt routeRules cache and ISR active
uncached_route
isr_overrevalidation
rendering_candidate
nuxt@>=3.0.0
90
https://vercel.com/docs/frameworks/full-stack/nuxt
https://nuxt.com/docs/4.x/api/utils/define-route-rules
https://nuxt.com/docs/4.x/guide/concepts/rendering
850

Investigation Brief

For Nuxt on Vercel, route-level caching usually belongs in routeRules. Match the lever to the route: prerender for static pages, ISR for shared content, and SSR for request-specific views.

Evidence To Check

Inspect nuxt.config, inline route rules, server routes, pages, auth/session reads, and observed cache or ISR read/write patterns. Verify whether the route should be Vercel cache-backed ISR rather than generic SWR.

Do Not Recommend When

Do not cache authenticated, cart, checkout, preview, or per-user routes. Do not add routeRules without proving the route is public and the freshness window is acceptable.

Verification

Name the observed route signal, current routeRule or missing rule, chosen cache mode, and exact config line.