Mixing Static and Dynamic Rendering in Nuxt 3 with Route Rules
Nuxt 3 route rules let you declare prerendering, SSR, and caching per route in nuxt.config.ts. Learn how to choose a strategy, verify the build output, and avoid stale-cache surprises.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Nuxt 3 route rules let you declare prerendering, SSR, and caching per route in nuxt.config.ts. Learn how to choose a strategy, verify the build output, and avoid stale-cache surprises.
Nuxt 3's routeRules lets you prerender the blog, add stale-while-revalidate caching to the homepage, and keep account pages fully dynamic — one config, one deployment.
A decision guide that compares StencilJS client‑only, SSR with hydration, and static prerendering, shows trade‑offs, and provides a concrete Express‑server implementation.
Protection gap between SSR and static routes Astro 4.x defaults to static-first rendering, where routes under src/pages/ are prerendered unless explicitly opted into SSR with export const prerender = false . Middleware defined in src/middleware/ executes on every request in SSR mode but is completely skipped for prerendered routes, which serve prebuilt HTML