Search forkrail

Search documentation, comparisons, and CLI commands.

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.

FrameworkStatusWhat the project needs
SvelteKitProduction ready@sveltejs/adapter-vercel or adapter-auto. With adapter-static it’s a static site.
AstroProduction ready@astrojs/vercel for a server; nothing for a static site.
Nuxt, Nitro, Vite + NitroProduction readyNothing: Nitro picks its vercel preset.
TanStack StartProduction readyNitro’s Vite plugin (nitro() in vite.config).
React Router 7+Production readyVite; vercelPreset() from @vercel/react-router for a function per route config.
Remix 2Production readyVite; vercelPreset() from @vercel/remix.
Vite, CRA, Vue CLI, Angular, Docusaurus, VitePress, Eleventy, Gatsby, HugoProduction readyNothing: deployed as a static site.
Next.js 13.5 to 16BetaNothing. Read Next.js below before putting one in production.

What works with each

FrameworkSSRStreamingISRImagesMiddlewareSkew protectionCrons
SvelteKitYesYesconfig.isrAdapter imagesYesYesvercel.json
AstroYesYesAdapter isrimageServiceYesYesvercel.json
NuxtYesWhole pages, as on Vercelisr route rulesNuxt ImageYesYesvercel.json
TanStack Start, NitroYesYesisr route rulesvercel.jsonYesYesscheduledTasks, vercel.json
React RouterYesYesNo, as on Vercelvercel.jsonYesYesvercel.json
Remix 2YesYesNo, as on Vercelvercel.jsonYesNo, as on Vercelvercel.json
Static sitesn/an/an/avercel.jsonYesn/an/a
Next.js (beta)YesYesIts own, shared cacheIts own optimizerYesYesvercel.json
  • Images is Image Optimization (/_vercel/image). See Image Optimization.
  • Middleware is the project’s middleware.ts or vercel.json proxy. 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, isr and Nuxt’s swr.
  • Static files are served before the function with Nitro’s cache headers (a year, immutable, for hashed assets).
  • Nitro 3’s scheduledTasks become cron jobs, as on Vercel. Nitro 2’s (Nuxt 4) don’t; use crons in vercel.json.
  • A project that pins the node-server preset 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)

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.json and next.config aren’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, and revalidatePath / revalidateTag reach 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/image by 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/dist or Angular’s dist/<project>/browser. outputDirectory names another.
  • Without a framework, public/ is served if there is one, else the folder itself (without hidden files, node_modules, README.md, package.json and lockfiles).
  • /docs and /docs/ both serve docs/index.html. A missing path gets your 404.html with status 404.
  • Files are revalidated on every visit (max-age=0 and a 304) unless your headers say 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 with locale.

Not yet compared with Vercel, so not claimed: SolidStart, Analog, Qwik City, Gatsby SSR/DSG pages, Mastra and RedwoodJS.

New to forkrail? Install it in your AWS account and deploy your first app in about 20 minutes.
Quickstart