Skip to content

Opt in to Nuxt 5 mode#187

Merged
serhalp merged 4 commits intomainfrom
agent-opt-in-to-nuxt-5-mode-e969
Mar 24, 2026
Merged

Opt in to Nuxt 5 mode#187
serhalp merged 4 commits intomainfrom
agent-opt-in-to-nuxt-5-mode-e969

Conversation

@netlify-coding
Copy link
Contributor

🔗 View agent run: https://app.netlify.com/projects/cache-inspector/agent-runs/69c1b2a3988c9673a07ce969

🤖 Agent: Claude

💬 Prompt: opt in to nuxt 5 mode: https://nuxt.com/raw/docs/4.x/getting-started/upgrade.md

Result: Opted the project into Nuxt 5 compatibility mode by changing future: { compatibilityVersion: 5 } in nuxt.config.ts (previously set to 4). This enables the new Nuxt 5 defaults including the Vite Environment API, normalized page names, improved state reset behavior, non-async callHook, and comment node placeholders for client-only components.

Nuxt 5 mode disables server auto-imports, so explicit h3 imports were added to the two server API routes (server/api/inspect-url.post.ts and server/api/runs/[runId].ts) for defineEventHandler, readBody, getRouterParam, and createError.

All documentation references were updated from "Nuxt 4" to "Nuxt 5" across CLAUDE.md, AGENTS.md, ARCHITECTURE.md, README.md, and knip.config.ts.

All tests pass (typecheck, lint, format check, and 125 unit tests).

@serhalp serhalp merged commit c6ce9cd into main Mar 24, 2026
14 checks passed
@serhalp serhalp deleted the agent-opt-in-to-nuxt-5-mode-e969 branch March 24, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant