Migrating to Nuxt v3.15.3
Version v3.15.3 introduces 1 breaking change. This guide details how to update your code.
Released: 1/24/2025
1
Breaking Changes
2
Migration Steps
9
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
devServer.corsdefineNuxtConfigTransitionfindPathresolvePathaddRouteMiddlewareNuxtLinkcallOnceClientOnlyBreaking Changes
●Issue #1
The dev server now imposes CORS origin restrictions by default for Vite and Webpack/Rspack middleware. If you use a custom hostname for development, you must now explicitly configure allowed origins in your config.
Migration Steps
- 1Upgrade Nuxt and its dependencies by running: `npx nuxi@latest upgrade --force`
- 2If using a custom hostname or external access to the dev server, update `nuxt.config` to include `devServer: { cors: { origin: ['https://your-custom-domain.com'] } }`.
Release Summary
Nuxt 3.15.3 is a security-focused patch release that introduces mandatory CORS restrictions on the dev server and includes various performance optimizations and bug fixes.
Need More Details?
View the full release notes and all changes for Nuxt v3.15.3.
View Full Changelog