You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prerendered index.html not served statically by Vercel preset — root URL goes through SSR function #4242
I'm running into the following behavior with the Vercel preset and wanted to ask whether this is a known issue, or whether
others have observed the same — before filing it as a bug.
Setup
A Nuxt 4 project (Nitro under the hood) deployed to Vercel, with:
The build produces both .output/public/index.html and .output/public/foo/some-slug/index.html as expected.
What I observe
Detail routes are served as pure static files from the Vercel Edge CDN. Response headers include accept-ranges: bytes, etag, last-modified, content-disposition — clear signs of CDN file delivery, no SSR function involved.
The root URL (/) on the same deploy behaves differently: it appears to be rendered by an SSR function on cache miss.
Headers include x-powered-by: Nuxt and cache-control: public, max-age=3600, and crucially do not include accept-ranges / etag / last-modified.
The first cache miss after deploy or after the 1h CDN cache expires therefore goes through a cold function start instead of
being delivered from the static file. Detail pages are not affected.
What seems to cause it
Looking at the generated .vercel/output/config.json, the overrides differ:
The root override has "path": "" (empty string), while detail routes get a proper non-empty path. Combined with the later
route { "src": "/", "dest": "/index" }, requests to / fall through to the SSR function instead of being matched by the
filesystem handler.
This looks similar to nuxt/nuxt#14888 (closed 2022) which was fixed by #500 — possibly a regression?
Question
Has anyone else observed this on recent Nitro / Nuxt versions with the Vercel preset?
Is the empty path in the root override expected behavior, or does it indicate something is misconfigured on my end?
If others can reproduce, I'm happy to file this as a bug — but wanted to check first whether it's already known.
changed the title [-]Is this a known issue? Prerendered `index.html` not served statically by Vercel preset — root URL goes through SSR function[/-][+]Prerendered `index.html` not served statically by Vercel preset — root URL goes through SSR function[/+]on May 2, 2026
Does not happen on v3 — the vercel preset no longer writes the root overrides entry with an empty path or a / -> /index route; the generated config puts the filesystem handler first, so the prerendered index.html is served statically.
Activity
[-]Is this a known issue? Prerendered `index.html` not served statically by Vercel preset — root URL goes through SSR function[/-][+]Prerendered `index.html` not served statically by Vercel preset — root URL goes through SSR function[/+]pi0x commentedon Sep 7, 2026
Does not happen on v3 — the vercel preset no longer writes the root
overridesentry with an emptypathor a/->/indexroute; the generated config puts the filesystem handler first, so the prerendered index.html is served statically.Triaged with AI assistance.