Dispatch
Vercel now promotes FastAPI frontends and StaticFiles mounts to the CDN at build time
As of 10 September, frontends declared with app.frontend() and static files mounted via StaticFiles are lifted to Vercel's CDN at build time instead of being served from the function on every request. Route precedence is preserved, so a route declared before a StaticFiles mount still wins over a CDN file at the same path. Frontends behind dependencies and static files behind middleware stay on the function because the CDN cannot run those checks, and source directories remain bundled unless explicitly excluded.
↳ Follow the thread