Frameworks
Websites build through each framework’s own Vercel adapter, with no change to your code or config. Static sites need no server at all.
Supported frameworks
Run forkrail deploy in the project. forkrail finds the framework in package.json (or vercel.json’s framework, or the project’s setting), installs dependencies with your lockfile’s package manager, and runs the build with Vercel’s build variables. A framework with a server writes Vercel’s Build Output (.vercel/output) through its own adapter, and forkrail deploys that.
| Framework | Status | What the project needs |
|---|---|---|
| SvelteKit | Production ready | @sveltejs/adapter-vercel or adapter-auto. With adapter-static it’s a static site. |
| Astro | Production ready | @astrojs/vercel for a server; nothing for a static site. |
| Nuxt, Nitro, Vite + Nitro | Production ready | Nothing: Nitro picks its vercel preset. |
| TanStack Start | Production ready | Nitro’s Vite plugin (nitro() in vite.config). |
| React Router 7+ | Production ready | Vite; vercelPreset() from @vercel/react-router for a function per route config. |
| Remix 2 | Production ready | Vite; vercelPreset() from @vercel/remix. |
| Vite, CRA, Vue CLI, Angular, Docusaurus, VitePress, Eleventy, Gatsby, Hugo | Production ready | Nothing: deployed as a static site. |
| Next.js 13.5 to 16 | Beta | Nothing. Read Next.js below before putting one in production. |
What works with each
| Framework | SSR | Streaming | ISR | Images | Middleware | Skew protection | Crons |
|---|---|---|---|---|---|---|---|
| SvelteKit | Yes | Yes | config.isr | Adapter images | Yes | Yes | vercel.json |
| Astro | Yes | Yes | Adapter isr | imageService | Yes | Yes | vercel.json |
| Nuxt | Yes | Whole pages, as on Vercel | isr route rules | Nuxt Image | Yes | Yes | vercel.json |
| TanStack Start, Nitro | Yes | Yes | isr route rules | vercel.json | Yes | Yes | scheduledTasks, vercel.json |
| React Router | Yes | Yes | No, as on Vercel | vercel.json | Yes | Yes | vercel.json |
| Remix 2 | Yes | Yes | No, as on Vercel | vercel.json | Yes | No, as on Vercel | vercel.json |
| Static sites | n/a | n/a | n/a | vercel.json | Yes | n/a | n/a |
| Next.js (beta) | Yes | Yes | Its own, shared cache | Its own optimizer | Yes | Yes | vercel.json |
- Images is Image Optimization (
/_vercel/image). See Image Optimization. - Middleware is the project’s
middleware.tsorvercel.jsonproxy. See Routing Middleware. - ISR pages are kept by the router and shared by every worker. See Caching and ISR.
- A deployment’s functions all run in one Lambda function at the largest memory any of them asks for, where Vercel runs each on its own. One route asking for 1,024 MB makes every route 1,024 MB.
SvelteKit and Astro
Form actions, hooks, $env, Astro actions, server islands and redirects work as on Vercel. getClientAddress() and Astro.clientAddress return the visitor’s real address. Astro’s sessions need a driver you name, on Vercel too. Astro’s edgeMiddleware runs on Node, as every Edge function does here.
Nuxt, Nitro and TanStack Start
- Route rules are answered by the router before the function wakes:
redirect,headers,proxy,isrand Nuxt’sswr. - Static files are served before the function with Nitro’s cache headers (a year,
immutable, for hashed assets). - Nitro 3’s
scheduledTasksbecome cron jobs, as on Vercel. Nitro 2’s (Nuxt 4) don’t; usecronsinvercel.json. - A project that pins the
node-serverpreset runs as one server, and the build warns that route rules and ISR then run inside it. Remove the pin to get Vercel’s behavior.
React Router and Remix
With vercelPreset(), routes whose config (memory, maxDuration) differ get their own function bundle; without it one function serves every route. SPA mode (ssr: false) is a static site. pnpm and Yarn projects install into a flat node_modules. Routes on the Edge runtime are refused: remove runtime: "edge" to run them on Node.
Next.js (beta)
Next.js 13.5 to 16 (App Router and Pages Router) builds, deploys and answers every route as next start would, with one cache shared by all workers. It isn’t recommended for critical production yet.
- forkrail runs Next’s own standalone server as the deployment’s function. Your
package.jsonandnext.configaren’t changed. - Next’s caches (pages, route handlers,
fetch,unstable_cache,'use cache') live in the router, so a page regenerated by one worker is served by all, andrevalidatePath/revalidateTagreach every worker. - Prerendered pages are served by the router from its cache (
x-vercel-cache: HIT), static files from/_next/static/with a one-year immutable cache, and/_next/imageby the install’s image function. - Middleware runs first: requests your middleware may match always go to Next.
output: 'export'deploys as a static site with no function.- Refused: Next before 13.5, Yarn Plug’n’Play, and servers over 250 MB unzipped.
- Known gap: on Next 13.5 to 14.2, background regeneration of a stale page can be cut off when the worker retires; 15 and later are fine.
Static sites
A site with no server deploys as files alone: no function, nothing to start, nothing billed but storage and transfer. The router serves every file from S3 in its own region and keeps the busiest in memory.
- A framework’s build output is found automatically:
dist,build,_site,public,docs/.vitepress/distor Angular’sdist/<project>/browser.outputDirectorynames another. - Without a framework,
public/is served if there is one, else the folder itself (without hidden files,node_modules,README.md,package.jsonand lockfiles). /docsand/docs/both servedocs/index.html. A missing path gets your404.htmlwith status 404.- Files are revalidated on every visit (
max-age=0and a 304) unless yourheaderssay otherwise; hashed assets of known frameworks are cached for a year. - A single-page app built with Vite needs a rewrite to
index.html, as on Vercel:{ "source": "/(.*)", "destination": "/index.html" }.
Not supported yet
These are refused by name, so a build stops rather than deploy something that behaves differently:
- Astro with a non-Vercel adapter, SvelteKit without Vercel’s or the static adapter, TanStack Start without Nitro, other Nitro presets.
- Remix’s classic compiler (without Vite), React Router without a
vite.config. - Jekyll and Middleman (the builder has no Ruby) and Zola (no arm64 build for the builder’s Linux).
- In a Build Output:
services, Python functions, more than 250 MB of functions, and routes withlocale.
Not yet compared with Vercel, so not claimed: SolidStart, Analog, Qwik City, Gatsby SSR/DSG pages, Mastra and RedwoodJS.