Nuxt 4 Production Optimization
Optimizes Nuxt 4 web applications for production through advanced SSR hydration fixes, performance tuning, Vitest suite setup, and edge deployment.
The Nuxt 4 Production Optimization skill provides Claude Code with authoritative architectural guidance, implementation patterns, and troubleshooting strategies for building enterprise-grade Nuxt 4 applications. It specializes in resolving complex SSR hydration mismatches, optimizing Core Web Vitals via lazy hydration and route caching, setting up component and end-to-end tests with Vitest, orchestrating seamless multi-platform deployments across Cloudflare Pages, Vercel, and Netlify, and managing end-to-end migrations from Nuxt 3 to Nuxt 4.
Key Features
01Performance tuning via lazy hydration, component code splitting, and route rule caching (SWR/ISR)
02Multi-target deployment presets and bindings for Cloudflare Pages/Workers, NuxtHub, Vercel, and Netlify
03239 GitHub stars
04Hydration mismatch diagnostics and deterministic state handling with useState and ClientOnly
05Automated migration guides for transitioning codebases from Nuxt 3 to Nuxt 4 structure and reactivity
06Comprehensive Vitest configuration for Nuxt components, composables, and server endpoints
Use Cases
01Configuring automated testing for Vue components and Nitro server routes using Vitest and @nuxt/test-utils
02Migrating legacy Nuxt 3 applications to the Nuxt 4 app/ directory structure and shallow reactivity defaults
03Diagnosing and resolving SSR hydration errors and non-deterministic rendering bugs in production