Skip to content

Hahlh/gatsby-functions-beta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.2%
  • Shell 9.8%