1×
Become a member
to unlock all features

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

Create account
Autoplay

    Create a Data Directory in Gatsby using the onPreBootstrap lifecycle

    gatsbyGatsby
    >=2.13.1

    Learn how to architect the React components in your Gatsby theme to maximize reusability and extendability while minimizing maintenance and hassle.

    The first step is to make sure the data directory exists so because gatsby-source-filesystem will throw an error if it doesn't.

    This lesson will cover that step.

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