Skip to content

curthayman/gatsby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatsby

This directory is a brief example of a Gatsby app with Serverless Functions that can be deployed to Vercel with zero configuration.

Deploy Your Own

Deploy your own Gatsby project, along with Serverless Functions, with Vercel.

Deploy with Vercel

Live Example: https://gatsby.vercel.app

Running Locally

Note: Gatsby Functions 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:

$ npm i -g vercel
$ vercel

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

$ yarn develop