1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
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.