Hahlh / gatsby-functions-beta

A showcase of Gatsby Functions for the public beta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby

Gatsby Functions Examples

πŸ›  Quick Start with Functions

  1. Install gatsby ^3.4

    Make sure you're using the latest version of Gatsby to get functions included by default.

    yarn add gatsby@latest
  2. Add the flag FUNCTIONS: true

    Add the FUNCTIONS flag to your gatsby-config.js

    module.exports = {
      flags: {
        FUNCTIONS: true,
      },
      // ...Other configuration
    }
  3. Add gatsby-plugin-gatsby-cloud

    To ensure propering routing across all your builds in Gatsby Cloud, include the Gatsby Cloud plugin in your project.

    yarn add gatsby-plugin-gatsby-cloud

πŸš€ Using the Examples

  1. Browse Examples.

    Browse the examples folder included here. You'll find a variety of examples including how to submit forms, send emails, and how to handle authentication.

  2. Deploy to Gatsby Cloud.

    On each example's README, you'll find instructions on how to deploy the project to Gatsby Cloud. Add any necessary API keys for that example and you'll have an example site up in minutes!

  3. Build! Iterate! Ship!

    Deploying to Gatsby Cloud automatically creates a Github repository where you can pull your code down locally to continue building, iterating, and shipping your code on Gatsby Cloud.

  4. Learn more

πŸ™Œ Contributing

  1. Fork this repo Make your own clone of this repo to add examples of functions that you've built.

  2. Add Your Functions Add your functions examples as a new Gatsby site example in the /examples/ directory and then make a Pull Request on this repo.

About

A showcase of Gatsby Functions for the public beta


Languages

Language:JavaScript 90.2%Language:Shell 9.8%