1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Add Static Data to a Gatsby Theme

    gatsbyGatsby
    >=2.13.1

    Learn how to load data from MDX (or any data source) and ensure the necessary folders exist.

    To do this, we'll need to add the data in a folder in the project and install two plugins: gatsby-source-filesystem and gatsby-transformer-yaml

    In gatsby-config.js, both of those plugins will be defined in the plugin array and the data will be exposed through out our application through GraphQL.

    For a written version of this course, check out the Gatsby docs.