Nuxt 4.7: I tested what's new and why it's worth upgrading

Thiago Nunes Batista
Written by: Thiago Nunes BatistaPublished on
Nuxt 4.7: I tested what's new and why it's worth upgrading

I broke the reviews API of a small Nuxt shop on purpose. Without protection, the whole page turned into a 500 error. With an experimental option in Nuxt 4.7, only the reviews block showed an error, and the rest of the shop kept working.

That was one of the tests I ran on the version released on November 23, 2026, about seven weeks after Nuxt 4.6. Nuxt 4.7 also moves errors from the terminal into the page, validates runtimeConfig before the server starts and fixes three security issues. On the starter project, the server output got 43% smaller. I think it's worth upgrading, but I'd keep two features out of production for now: WebMCP, which lets AI agents use your site, and Nitro v3, the base of Nuxt 5.

The official release post is quite technical, and I don't find it easy to follow, so I tested things myself. The screenshots come from those tests, the docs and GitHub. The shop's interface is in Portuguese. If you'd rather watch, the video above covers the main changes, also in Portuguese.

Nuxt 4.7 features at a glance

FeatureStatusWould I use it now?
Problems inside the pageon by default in developmentyes
typeCheck: 'dev'opt-inyes
Schemas in runtimeConfigopt-inyes
NuxtErrorBoundary on the serverexperimental, off by defaultyes, after testing
staticRoutesexperimental, off by defaultyes, after testing
WebMCPexperimental, off by defaultonly to experiment
Nitro v3highly experimentalonly on a branch

Errors and warnings inside the page

In the browser, my shop looked perfect. In the terminal there was a Vue warning, a TypeScript error and a link to a page that doesn't exist. Who watches the terminal all day?

nuxt dev log panel in Nuxt 4.7 showing the NUXT_B4025 warning, a Vue warning and a vue-tsc error

In Nuxt 4.7, all of that goes to a badge in the corner of the page with a problem count. Clicking it opens a drawer with the file, the code around the problem and a button that opens your editor.

Nuxt 4.7 problems drawer showing a NuxtLink to a route that does not exist, with the file and line

Warnings from Vue and Nuxt show up by default. To include TypeScript errors, turn on typeCheck. You can now keep it in development only, so it doesn't run again during the build:

export default defineNuxtConfig({
  typescript: {
    typeCheck: "dev" // also accepts true or 'build'
  }
});

Nuxt knows the routes in your project, so it now checks the static to of every <NuxtLink>. In the shop I typed /prodtos and got NUXT_B4025 before anyone could hit a 404. If the link points to a server route or a file in public/, add the external prop.

NuxtErrorBoundary now catches server errors

In production, an API can go down at any moment. My shop loads reviews from a separate API. When it failed during server rendering, visitors got a 500 and never saw the product, which had nothing wrong with it.

<NuxtErrorBoundary> already existed, but it only caught errors in the browser. With ssrErrorBoundary, it catches both:

export default defineNuxtConfig({
  experimental: {
    ssrErrorBoundary: true
  }
});
<NuxtErrorBoundary>
  <Reviews />
  <template #error="{ clearBoundaryError }">
    <p>Reviews unavailable</p>
    <button @click="clearBoundaryError">Try again</button>
  </template>
</NuxtErrorBoundary>

I broke the reviews API again and the response went from 500 to 200. The page opened with the message where the reviews would be, and the rest of the shop kept working.

Shop on Nuxt 4.7 with ssrErrorBoundary: products render and only the reviews block shows an error

There's also a retry-on-client prop, which tries to render the content again in the browser. It replaces <NuxtClientFallback>, now deprecated.

How to validate runtimeConfig with Zod

Sometimes you deploy, the site opens fine, and the first customer who tries to pay gets an error because nobody set the payment key on that server.

In Nuxt 4.7, runtimeConfig values accept a Standard Schema, such as one from Zod, Valibot or ArkType:

import { z } from "zod";

export default defineNuxtConfig({
  runtimeConfig: {
    apiSecret: z.string(),
    public: {
      mode: z.enum(["preview", "production"]).default("production")
    }
  }
});

I started the server without the key and it refused to boot. The NUXT_E8014 error says what's missing and lists every problem at once, so you find out at deploy time, before a customer has their card in hand.

Terminal showing NUXT_E8014: apiSecret is required and the NUXT_API_SECRET variable is missing

Schemas fix types too. Nuxt used to guess whether a variable was text or a number. In my test, the key 4848e0 became the number 4848. With z.string(), it stayed a string.

Terminal comparison: without a schema 4848e0 becomes the number 4848, with z.string it stays text

WebMCP in Nuxt 4.7: letting AI agents use your site

Today an agent has to read the screen or the HTML, work out what's a button and try to reach a result. Sometimes it clicks the wrong thing. WebMCP is a proposed browser API where the page itself says which actions it offers, such as adding to a cart.

Official Nuxt WebMCP docs with the experimental notice and the webmcp option in nuxt.config

I set experimental.webmcp: true and added a comment with @tool to a function the shop already had. In English, it looks like this:

<script setup lang="ts">
/**
 * Add a product to the cart. Use when the user wants to buy something.
 * @tool
 */
function addToCart(sku: string) {
  cart.value.push(sku);
}
</script>

<template>
  <li v-for="product in products" :key="product.sku">
    <button :disabled="!product.inStock" @click="addToCart(product.sku)">
      Add
    </button>
  </li>
</template>

Nuxt turns that function into an add_to_cart tool. The template sets the limit: the agent can only pick products on the page, and a disabled button blocks the action too. In forms, the agent fills in the fields and goes through the same validation as anyone else.

I tested it in Chrome 158 with the WebMCP feature enabled. A script of mine called the tool, with no AI model behind it. The mug went into the cart and the sold-out mousepad was refused:

WebMCP test in Chrome: the tool adds the mug to the cart and refuses the sold-out mousepad

To try it locally, turn on chrome://flags/#enable-webmcp-testing. In browsers without support, the site works as usual. I wouldn't ship it yet, because the spec is still changing. With or without WebMCP, validate everything on the server.

Performance: Nuxt 4.6.4 vs Nuxt 4.7

These numbers come from the Nuxt team's own tests:

Measurement4.6.44.7.0Change
Installed packages, starter523473-50
Server output, starter2.17 MB1.23 MB-43%
Initial page load, starter80.4 kB66.3 kB-18%
SSR, starter245 req/s292 req/s+19%
SSR, page with 1,000 <NuxtLink>s88 req/s218 req/s2.5x
Hydration, Nuxt UI landing page757 ms644 ms-15%
Total blocking time, Nuxt UI landing page276 ms180 ms-35%

Nobody has a page with a thousand links, but it shows how much lighter the component is for the server. Not everything improved: nuxt build got about 6% slower on the starter and 7% faster on their large app.

How to enable staticRoutes

By default, the server rebuilds the whole route structure on every request, in case a route was added while the site was running. It's like a restaurant printing a new menu for every customer who walks in. With staticRoutes, it builds it once and reuses it:

export default defineNuxtConfig({
  experimental: {
    staticRoutes: true
  }
});

On an app with about 170 pages, the Nuxt team went from 890 to 1,976 requests per second on a small page. My own test, also with 170 simple pages, went from about 1,740 to 4,850. The machines and apps are different, so don't compare absolute values or expect the same gain in every project.

ab benchmark in the terminal: about 1,740 requests per second without staticRoutes and 4,850 with it

If your routes come from the pages folder, go ahead and test it. You just can't call addRoute(), removeRoute() or clearRoutes() at runtime.

Nitro v3 on Nuxt 4: a piece of Nuxt 5

Nitro is the engine that runs the routes in your server folder, and version 3 is the base of Nuxt 5. By default, Nuxt 4.7 stays on Nitro v2 and only uses Nitro v3 if you install the nitro package:

npm install nitro

At build time, Nuxt sees nitro in your package.json and uses the new version. If something breaks, remove the package. My shop built fine with Nitro 3.0.261103-rc:

nuxt build on Nuxt 4.7 using Nitro 3.0.261103-rc, Vite 8.3.8 and Vue 3.5.46

Nuxt also turns on a compatibility layer that works like a plug adapter: much of your old code keeps running on the new server. To find what still depends on it, set nitroLegacy: false.

Watch your route rules: in Nitro v3, /blog/* also applies to /blog/2026/hello. Every package your server imports also has to be in your package.json.

On the 170-page app, the Nuxt team measured 33% more requests per second on the home page (926 to 1,236). But Nitro v3 is still a release candidate, and they ask you not to use it in production.

Security: the three issues fixed

The one that caught my attention is GHSA-jxc9-w3j6-pwp2, rated moderate. Picture a site that caches everything except the account page:

export default defineNuxtConfig({
  routeRules: {
    "/**": { isr: 60 },
    "/account": { isr: false }
  }
});

The page stayed out of the cache, but the _payload.json with its data could still be stored. In some cases, a CDN could serve one user's data to another.

GitHub security advisory GHSA-jxc9-w3j6-pwp2 listing affected Nuxt versions and the 4.7.0 fix

If your project caches pages like that, upgrade and then purge your CDN cache. The new version doesn't remove what is already stored there.

The other two are GHSA-vrh2-cfcx-c3fg (moderate), where repeated or encoded slashes bypass rules on catch-all routes, and GHSA-h5xj-x893-p5f7 (low), which affects development servers exposed to a network.

Nuxt 3 is affected too: the advisories list 3.x versions and, on November 24, 2026, showed no fix for that line. Nuxt 3 reached end of life on July 31, 2026, so the way forward is migrating to Nuxt 4.

How to upgrade to Nuxt 4.7

npx nuxt upgrade --dedupe

Before you ship, check these points:

  • Nuxt 4.7 needs Vue ^3.5.46. The command above updates both.
  • DevTools no longer comes installed. If you use it, add @nuxt/devtools to your devDependencies.
  • @nuxt/rspack-builder is deprecated in favor of @nuxt/rsbuild-builder.
  • Scripts that read globalThis.$fetch outside your app code may need experimental.globalFetch: true.

Should you upgrade to Nuxt 4.7?

I say yes, mainly for security and performance. Errors in the browser and runtimeConfig validation also make Nuxt more solid day to day. Upgrade, run your tests and try staticRoutes.

WebMCP and Nitro v3 are cool, but they're still unstable. Try them on a branch. I wouldn't recommend either for a production site right now.

For another recent addition, read about Vue Vapor Mode in Nuxt 4.6.

Sources

Checked on November 24, 2026.