Nuxt Icon v2.6.5: Nitro v3 build fix and keeping the iconifyApiEndpoint pathBrief · digest for December 5
Brief≈ 1 min

Nuxt Icon v2.6.5: Nitro v3 build fix and keeping the iconifyApiEndpoint path

You try pairing a fresh Nuxt 4 app with the Nitro v3 server engine, and the build suddenly crashes on plain icons. That happened because the official @nuxt/icon module used to guess the Nitro version from the Nuxt version number. If you weren't on Nuxt 5, it assumed old Nitro v2 and injected incompatible imports for server cache and errors.

Patch v2.6.5 removes that guesswork. The module now asks for the actual engine version using the getNitroVersion helper from @nuxt/kit. As a result, it builds the server bundle for Nitro v3 cleanly even on Nuxt 4.

The release also fixed a quiet trap with self-hosted Iconify servers. Suppose you run one behind a reverse proxy on a subpath like https://example.com/iconify and leave off the trailing slash in iconifyApiEndpoint. JavaScript's new URL constructor treated /iconify as a filename and stripped it during the server fallback. Requests went to the domain root and failed to find icons.

Now the module runs the endpoint through withTrailingSlash from ufo before building the URL, so a missing slash won't break anything. The update is fully backward-compatible and needs no changes in nuxt.config.ts. If you run Nitro v3 on Nuxt 4 or host your own Iconify API, you can safely pull this patch.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 7