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

    Configure a Gatsby Theme to Take Options

    gatsbyGatsby
    >=2.13.1

    Gatsby themes accept options. Learn how to read these options and generate pages from the correct data at the appropriate locations.

    In this lesson, we'll:

    • turn the gatsby-config into a function
    • pass in options as arguments to that function
    • update gatsby-node to reference the options passed in

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

    In a consuming package, you can configure the options object however you need to within the plugins array.