Become a member
to unlock all features

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

Create account

    Configure a Gatsby Theme to Take Options


    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.