Detailed Guide: Roadmap to Nuxt 4
1. Why the Release Was Split into Two Phases
- Early Testing and Feedback
Transitioned to the Release Candidate (RC) phase on July 8, 2025, to collect real-world usage feedback from the community before the final release. - Smooth Migration Path
By using thecompatibilityVersion: 4
flag, breaking changes from Nuxt 3 to Nuxt 4 can be tested incrementally, allowing for early detection of issues.
2. Roadmap and Key Milestones
Phase | Date | Key Details |
---|---|---|
Alpha | June 2, 2025 | Initial alpha release. Core features implemented and early testing begins |
Release Candidate (RC) | July 8, 2025 | Feature set finalized and entering final testing phase |
Stable Release | Late July 2025 (TBD) | Official release after fixing bugs reported during RC |
3. Key Features of Nuxt 4
-
New Directory Structure (
app/
)pages/
directory is removed, and all app code is consolidated under theapp/
directory.- Clearly separates client/server code boundaries, significantly improving file system watch performance.
-
Redesigned Data Fetching
- Internal cache optimization for
useAsyncData
anduseFetch
automatically merges duplicate requests to the same endpoint. - Ensures consistent data fetching flows between server-side rendering and client-side.
- Internal cache optimization for
-
Revamped Head Management (Meta Tags)
- Migration to Unhead v2 adds support for removing duplicate tags and introduces new SEO optimizations.
-
Enhanced Vite-based Development Environment
- Supports Vite’s environment variable API, improving dev server performance.
- Hot Module Replacement (HMR) is now even faster.
-
Improved Type Safety
- Strengthened
environment
type definitions to improve accuracy across server/client/shared code.
- Strengthened
4. Nitro v3 and the Path to Nuxt 5
- Nitro v3 Integration Testing
Deep integration with Nitro v3 during the RC phase, validating compatibility across the ecosystem. - Nuxt 5 Release Plans
Nuxt 5 will be released a few months after Nitro v3 stabilizes, with plans to expand the plugin API and improve multilingual support.
5. Migration Guide: From Nuxt 3 to Nuxt 4
-
Using Codemods
With the official tool:npx codemod@latest nuxt/4/migration-recipe
most breaking changes can be automatically transformed.
-
Manual Checkpoints
- Review
nuxt.config
options - Reorganize plugin files (
plugins/
→app/plugins/
) - Update middleware APIs
- Review
6. Best Practices and Community Engagement
- Welcoming Feedback During RC Phase
Sharing migration experiences and issues via GitHub Discussions or RFC threads will help prioritize responses from the Nuxt team. - Try Experimental Features
New features can be tested early via theexperimental
section innuxt.config
. - Learning Resources
- Official Documentation: https://nuxt.com/docs/4.x
- Vue School articles: Deep dives into directory structure and data fetching