---
title: "Gatsby 5 Boilerplate"
description: "A Gatsby starter template using v5."
url: "https://vercel.com/templates/gatsby/gatsbyjs-boilerplate"
links:
  repository: "https://github.com/vercel/examples/tree/main/framework-boilerplates/gatsby"
  demo: "https://gatsby.vercel.app/"
  deploy: "https://vercel.com/new/clone?demo-title=Gatsby+5+Boilerplate&demo-description=A+Gatsby+starter+template+using+v5.&demo-url=https%3A%2F%2Fgatsby.vercel.app%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F1lx5o0kDJkZWe3EBKGN6Gj%2F44dc1a077c0ac62e13d189c7ac053c20%2FCleanShot_2022-11-18_at_15.02.18_2x.png&project-name=Gatsby+5+Boilerplate&repository-name=gatsbyjs-boilerplate&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fframework-boilerplates%2Fgatsby&from=templates"
---

# Gatsby 5 Boilerplate

A Gatsby starter template using v5.

This directory is a brief example of a [Gatsby](https://www.gatsbyjs.org/) app with [Serverless Functions](https://vercel.com/docs/concepts/functions/serverless-functions) that can be deployed to Vercel with zero configuration.

## Demo

_Live Example: https://gatsby.vercel.app_

## Running Locally

> **Note:** [Gatsby Functions](https://www.gatsbyjs.com/docs/reference/functions/getting-started/) are not yet supported on Vercel, which is why the API Route is in `/api` instead of `/src/api`.

To run your Gatsby application and your API Route, you'll need to use the [Vercel CLI](https://vercel.com/cli):

```shell
$ npm i -g vercel
$ vercel
```

Alternatively, you can remove the API and just use Gatsby:

```shell
$ yarn develop
```

## Related Templates

### [SvelteKit Boilerplate](https://vercel.com/templates/svelte/sveltekit-boilerplate)

A SvelteKit app including nested routes, layouts, and page endpoints.

### [Next.js Boilerplate](https://vercel.com/templates/next.js/nextjs-boilerplate)

Get started with Next.js and React in seconds.

### [Create React App](https://vercel.com/templates/react/create-react-app)

A client-side React app created with create-react-app.

---

## 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.
