Which version control boundaries guarantee safe recovery from a failed Nuxt upgrade
0 reputation · 05 Jun 2024, 07:32 UTC
Planning a safe recovery path after a Nuxt major upgrade is a design decision about what can be reliably reverted when config schema, composables and Nitro runtime change.
nuxi upgrade can apply codemods and print migration notes, but it does not snapshot runtime state. Recovery depends on version control boundaries for lockfiles and config files, and on assumptions about Node version and Nitro preset compatibility. Behavior is version sensitive across Nuxt 3 minor releases and Nuxt 4.
An unresolved decision point is partial migration of pages and components with auto imports. Nuxt does not prescribe a safe incremental coexistence of legacy and new conventions, so teams must decide between full rewrite and temporary compatibility shims.
Does nuxi upgrade provide a reversible snapshot of nuxt.config, app.config and server routes, or is manual version control the only recovery mechanism? Which artifacts must be pinned to ensure a revert restores build output after a major upgrade? How should teams decide between full rewrite and compatibility shims for auto imported pages and components?