nuxt-knowledge-patch
Nuxt 3.11+ Knowledge Patch
Claude's baseline knowledge covers Nuxt 3 through 3.9. This skill provides features from 3.11 (March 2024) onwards through 3.12 (June 2024).
Quick Reference
Version Timeline
| Version | Date | Key Change |
|---|---|---|
| 3.11 | 2024-03-16 | Middleware via routeRules, server/client-only pages |
| 3.12 | 2024-06-10 | Nuxt 4 compatibility mode, auto-registered layers |
New Features at a Glance
| Feature | Version | Detail |
|---|---|---|
appMiddleware in routeRules |
3.11 | Assign middleware to routes in config instead of page-level definePageMeta |
.server.vue / .client.vue pages |
3.11 | Server-only and client-only page rendering via file suffix |
future.compatibilityVersion: 4 |
3.12 | Opt into Nuxt 4 breaking changes incrementally while on v3 |
| Auto-registered layers | 3.12 | ~/layers/ auto-registered like ~/modules/, no config needed |
Middleware via routeRules (3.11)
Assign app-level middleware to page paths in config using appMiddleware:
// nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/admin/**': {
appMiddleware: ['auth']
},
'/admin/login': {
appMiddleware: { auth: false } // disable for specific routes
},
},
})
See references/routing-and-pages.md for server/client-only pages.
Nuxt 4 Compatibility Mode (3.12)
Opt into Nuxt 4 breaking changes incrementally:
// nuxt.config.ts
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
})
Enables v4 behavior changes (e.g., shallow reactive asyncData payloads) while still on v3, allowing gradual migration.
See references/nuxt-4-migration.md for details.
Reference Files
| File | Contents |
|---|---|
routing-and-pages.md |
routeRules middleware, server/client-only pages, auto-registered layers |
nuxt-4-migration.md |
Nuxt 4 compatibility mode and migration strategy |
More from nevaberry/nevaberry-plugins
dioxus-knowledge-patch
Dioxus changes since training cutoff (latest: 0.7.4) — Signals replacing use_state, RSX macro overhaul, server functions, asset!() system, dx CLI, Element-as-Result. Load before working with Dioxus.
46rust-knowledge-patch
Rust changes since training cutoff (latest: 1.94.0) \u2014 Rust 2024 Edition, async closures, trait upcasting, new std APIs, cargo resolver v3. Load before working with Rust.
20postgresql-knowledge-patch
PostgreSQL changes since training cutoff (latest: 18.1) — JSON_TABLE, SQL/JSON functions, MERGE RETURNING, virtual generated columns, UUIDv7, temporal PRIMARY KEY. Load before working with PostgreSQL.
16bun-knowledge-patch
Bun changes since training cutoff (latest: 1.3.10) \u2014 S3 client, built-in SQL/Redis, route-based HTTP server, CSS bundler, V8 compatibility. Load before working with Bun.
14nextjs-knowledge-patch
Next.js changes since training cutoff (latest: 16.1) — proxy.ts, \"use cache\", Cache Components, navigation hooks, typed routes, auto PageProps, React 19.2. Load before working with Next.js.
14postgis-knowledge-patch
PostGIS changes since training cutoff (latest: 3.6.1) — SFCGAL CG_* rename, ST_CoverageClean, ST_AsRasterAgg, topology bigint IDs, viewport simplification, 3D SFCGAL ops. Load before working with PostGIS.
13