Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. You can deploy a Fastify app to Vercel with zero configuration using Vercel Functions.
Fastify applications on Vercel benefit from:
- Fluid compute: Pay for the CPU you use, automatic cold start reduction, optimized concurrency, background processing, and more
- Preview deployments: Test your changes in a copy of your production infrastructure
- Instant Rollback: Recover from breaking changes or bugs in milliseconds
- Vercel Firewall: Protect your applications from a wide range of threats with a robust, multi-layered security system
- Secure Compute: Create private links between your Vercel-hosted backend and other clouds
Get started with Fastify on Vercel
You can quickly deploy a Fastify application to Vercel by creating a Fastify app or using an existing one:
Fastify entrypoint detection
To allow Vercel to deploy your Fastify application and process web requests, your server entrypoint file should be named one of the following:
src/app.{js,mjs,cjs,ts,cts,mts}
src/index.{js,mjs,cjs,ts,cts,mts}
src/server.{js,mjs,cjs,ts,cts,mts}
app.{js,mjs,cjs,ts,cts,mts}
index.{js,mjs,cjs,ts,cts,mts}
server.{js,mjs,cjs,ts,cts,mts}
For example, use the following code as an entrypoint:
import Fastify from'fastify';
return { hello:'world' };
fastify.listen({ port:3000 });
vercel dev
});
fastify.get('/',async (request, reply) => {
Vercel Functions
vc deploy
When you deploy a Fastify app to Vercel, your Fastify application becomes a single Vercel Function and uses Fluid compute by default. This means your Fastify app will automatically scale up and down based on traffic.
To deploy, connect your Git repository or use Vercel CLI:
More resources
Learn more about deploying Fastify projects on Vercel with the following resources:
Cross-link map: Fastify on Vercel (/docs/frameworks/backend/fastify)From the Vercel docs graph (built 2026-09-21T05:26:59.511Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.jsonSemantically closest pagesHow to ship a Fastify app on Vercel — Deploy a Fastify app to Vercel with zero configuration, then add streaming, lifecycle hooks, cron jobs, and observabilitDeploy a FastAPI app on Vercel — Deploy a FastAPI app on Vercel. Learn how the Python runtime, ASGI, static assets, and Vercel Functions work together.Deploy a Node.js Fastify app on Vercel with Docker — Build a Node.js application with Fastify and Docker, then deploy it to Vercel Functions. Learn how to configure environmZero-configuration support for FastifyExpress on Vercel — Deploy Express applications to Vercel with zero configuration. Learn about middleware and Vercel Functions.This page links to (9)vercel deploy — Learn how to deploy your Vercel projects using the vercel deploy CLI command.Environments — Environments are for developing locally, testing changes in a pre-production environment, and serving end-users in produFluid compute — Learn about fluid compute, an execution model for Vercel Functions that provides a more flexible and efficient way to ruVercel Functions — Build API routes, webhooks, and agent request handlers with Vercel Functions, then test and debug them with Vercel CLI.Vercel Functions Limits — Learn about the limits and restrictions of using Vercel Functions.Performing an Instant Rollback on a Deployment — Learn how to perform an Instant Rollback on your production deployments and quickly roll back to a previously deployed pSecure Compute — Secure Compute provides dedicated private networks with VPC peering for Enterprise teams.Vercel Firewall — Learn how Vercel Firewall helps protect your applications and websites from malicious attacks and unauthorized access.How to ship a Fastify app on Vercel — Deploy a Fastify app to Vercel with zero configuration, then add streaming, lifecycle hooks, cron jobs, and observabilitPages that link here (3)By site: vercel-changelog (1) · vercel-kb (2)From vercel-changelogZero-configuration support for FastifyFrom vercel-kbDeploy a Node.js Fastify app on Vercel with Docker — Build a Node.js application with Fastify and Docker, then deploy it to Vercel Functions. Learn how to configure environmHow to ship a Fastify app on Vercel — Deploy a Fastify app to Vercel with zero configuration, then add streaming, lifecycle hooks, cron jobs, and observabilit
All Vercel Functions limitations apply to the Fastify application, including the standard bundle size limit of 250MB for Node.js applications. Large Functions support Node.js bundles up to 5GB on Fluid compute when enabled (public beta).
Last updated August 10, 2026
Was this helpful?