Nuxt 4 production optimization: hydration, performance, testing with Vitest, deployment to Cloudflare/Vercel/Netlify, and v4 migration. Use when: debugging hydration mismatches, optimizing performance and Core Web Vitals, writing tests with Vitest, deploying to Cloudflare Pages/Workers/Vercel/Netlify, or migrating from Nuxt 3 to Nuxt 4. Keywords: hydration, hydration mismatch, ClientOnly, SSR, performance, lazy loading, lazy hydration, Vitest, testing, deployment, Cloudflare Pages, Cloudflare Workers, Vercel, Netlify, NuxtHub, migration, Nuxt 3 to Nuxt 4
98
100%
Does it follow best practices?
Impact
100%
1.42xAverage score across 3 eval scenarios
Passed
No known issues
Hydration mismatch fixes
useState for sessionId
0%
100%
useState for loginTime
0%
100%
Chart.js in onMounted
100%
100%
ClientOnly for chart
0%
100%
ClientOnly fallback slot
0%
100%
No bare window access
100%
100%
v-show for responsive nav
0%
100%
No bare localStorage access
100%
100%
Reactive isMobile ref
100%
100%
hydration-fixes.md present
100%
100%
onUnmounted cleanup
0%
100%
Vitest testing setup
defineVitestConfig import
100%
100%
environment: 'nuxt'
100%
100%
domEnvironment: 'happy-dom'
0%
100%
mountSuspended usage
100%
100%
mockNuxtImport for useFetch
100%
100%
test script in package.json
100%
100%
correct dev deps
100%
100%
composable tests present
100%
100%
add-to-cart emission test
100%
100%
loading state test
100%
100%
Cloudflare Workers deployment config
cloudflare-module preset
0%
100%
compatibility_date correct
100%
100%
nodejs_compat flag
100%
100%
D1 binding in wrangler
100%
100%
KV binding in wrangler
100%
100%
R2 binding in wrangler
100%
100%
No Prisma in server route
100%
100%
nitro-cloudflare-dev module
0%
100%
secrets via wrangler
100%
100%
useRuntimeConfig for secrets
100%
100%
main entry in wrangler
100%
100%
90d6bd7
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.