This migration guide is under progress to align with the development of Nuxt 3.
Major Changes
Some of these significant changes include:- Moving from Vue 2 to Vue 3 - Including defaulting to the Composition API and script setup.
- Moving from webpack 4 and Babel to Vite or webpack 5 and esbuild - Faster builds and improved developer experience.
- Moving from a runtime Nuxt dependency to a minimal, standalone server - Compiled with nitropack.
What to Expect
The migration process involves updating your:- Configuration files and module setup
- Component structure and syntax
- Auto-imports and composables
- Pages, layouts, and routing
- Runtime configuration and environment variables
- Meta tags and SEO setup
- Plugins and middleware
Next Steps
Start your migration journey by learning about the differences in:- Configuration - Update your
nuxt.configfile - Auto-imports - Understand automatic component and composable imports
- Pages and Layouts - Migrate your routing and layout structure
- Runtime Config - Handle environment variables properly
- Meta Tags - Update your SEO and meta tag management
- Plugins and Middleware - Modernize your plugins and route middleware