Gems of Nuxt: 8 Features Every Nuxt Developer Should Know!
summary
Shows how to opt into Nuxt 4 compatibility with a single flag and the new app/shared folder layout, demonstrates defineCachedEventHandler and a low-level getCacheData hook that cache parts of responses and store to Nitro drivers, proves auto-generated OpenAPI from server routes, and explains route rules, env-aware nuxt.config.ts, OG image generation via the SEO module, and dev-server flags like --https --open for local TLS and instant sharing. Examples run locally and the caching/demo endpoints work as shown.
AI-written summary · about
chapters (12)
- 0:00Introduction and setup
- 3:36Nuxt 4 compatibility flag
- 5:23Shared folder and import protection
- 7:08Get cached data composable
- 11:00Nitro caching and API routes
- 13:06Live coding demo
- 16:40OpenAPI spec generation
- 18:05Route rules and rendering modes
- 19:08Environment-aware config
- 21:14OG image generation
- 22:15Nux dev command flags
- 23:39Closing and resources
