Category: Uncategorized

  • Automating Site Operations with Recipes

    Because Gatsby recipes are a relatively new feature, introduced late in the Gatsby 2.0 release cycle, you may need to upgrade to the latest version of Gatsby to access recipe features: Then, run the following command in the root of an existing Gatsby project to access the list of available recipes: You’ll see output in your…

  • Infrastructure as Code

    IaC involves the notion of managing discrete environments (such as development, testing, and production) through configuration files and scripts that ensure consistency across your site builds. Differences between environments, such as differing Node.js versions, are a common but often subtle source of problems for developers. IaC is intended to minimize this sort of “drift.” In Gatsby, configuration…

  • Creating Recipes

    In this section we’ll explore recipes in Gatsby, which are configuration files or scripts that Gatsby ingests to generate predefined and consistent environments across development and production with minimal overhead. We’ll also discuss the concept of IaC and how to automate common Gatsby site operations.

  • Advanced Topics in Gatsby

    In the previous sections, we’ve examined some of the most important beginning and intermediate use cases when developing Gatsby sites. But there are also many features available in Gatsby for more advanced use cases. For example, as a Gatsby developer, you may wish to automate certain tasks during Gatsby site setup, customize the GraphQL schema…

  • Conclusion

    When you’ve finished building your Gatsby site and have ensured no issues remain that block release, it’s important to give careful thought to deployment. You’ll want to facilitate the optimal deployment infrastructure for your site, both now and in the future. Thanks to environment variables, path prefixes, and asset prefixes, Gatsby provides a variety of…

  • GitHub Pages

    Though GitHub Pages isn’t a typical hosting platform, its ease of use means it’s a popular solution for Gatsby developers who want to host their websites directly through their GitHub repositories. There are three different options for Gatsby developers who have selected GitHub Pages for deployment: Use a path that corresponds to the GitHub account name…

  • Firebase

    Firebase, now part of Google, is a developer-oriented hosting platform that, like Heroku, offers a CLI for developers who wish to perform infrastructure operations through the terminal. Firebase enables deployment of both dynamic web applications and static sites to a global CDN. Before getting started with this service, users wishing to deploy Gatsby sites need to…

  • Heroku

    Heroku, now part of Salesforce, is a common hosting solution for both single-page JavaScript applications and static sites. The Heroku CLI offers rich interactions with Heroku’s build and deployment capabilities, as well as a variety of other features for continuous integration and continuous deployment. If you’re using the Heroku CLI, the quickest way to set up builds…

  • Amazon S3

    For Gatsby developers who desire deeper interaction with their deployments, Amazon S3 is a lower-level alternative to AWS Amplify. An object storage provider offered by AWS, Amazon S3 also provides an integration with Amazon CloudFront, a global CDN. Once you have an account with access to the AWS Console, you can install the AWS CLI and configure it…

  • Azure

    Azure is Microsoft’s native hosting platform, with a variety of services including serverless features and static website hosting through Azure Static Web Apps. The Azure Static Web Apps service also includes support for a built-in CDN, authentication, continuous deployment, and HTTPS. In order to utilize Azure as your static site host, your Gatsby site needs to…