---
title: "Fastify on Vercel"
description: "Deploying an API on Vercel with Fastify."
url: "https://vercel.com/templates/other/fastify-on-vercel"
links:
  repository: "https://github.com/vercel/vercel/tree/main/examples/fastify"
  demo: "https://fastify-vercel-example-demo.vercel.app/"
  deploy: "https://vercel.com/new/clone?demo-title=Fastify+on+Vercel&demo-description=Deploying+an+API+on+Vercel+with+Fastify.&demo-url=https%3A%2F%2Ffastify-vercel-example-demo.vercel.app%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F2pcIKkCDKmIT5nOdDivhiM%2F2d56e6f4bb1ca25d0ad1355acf9e7338%2FFastify.png&project-name=Fastify+on+Vercel&repository-name=fastify-on-vercel&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Ffastify&from=templates&skippable-integrations=1"
---

# Fastify on Vercel

Deploying an API on Vercel with Fastify.

To develop locally:

```
npm install
vc dev
```

```
open http://localhost:3000
```

To build locally:

```
npm install
vc build
```

To deploy:

```
npm install
vc deploy
```

## Related Templates

### [Node.js Serverless Function](https://vercel.com/templates/other/nodejs-serverless-function-express)

Use Node.js with Vercel Serverless Functions.

### [Django Hello World](https://vercel.com/templates/python/django-hello-world)

Use Django on Vercel with Serverless Functions using the Python Runtime.

### [Flask Hello World](https://vercel.com/templates/python/flask-hello-world)

Use Flask 3 on Vercel with Serverless Functions using the Python Runtime.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
