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 Gatsby project, along with Serverless Functions, with Vercel.
Live Example: https://gatsby.vercel.app
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