Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.66 KB

gatsby-config.md

File metadata and controls

40 lines (35 loc) · 1.66 KB

Gatsby configuration

On this page, you'll find all possible options you can pass into the gatsby-source-jam-cms plugin. Check out the Get Started page to learn more about setting up the environmental variables.

const path = require(`path`);

plugins: [
  (...),
  {
    resolve: `gatsby-source-jam-cms`,
    options: {
      source: YOUR_WP_URL,
      apiKey: YOUR_API_KEY,
      // Change path to fields object
      fields: path.join(__dirname, 'src/fields'),
      settings: {
        // Deactivate automatic syncing of post types, templates and fields to WordPress (default: true)
        sync: true,
        // Deactivate the jamCMS editing interface altogether (default: false)
        decouple: false,
      },
    },
  },
]

Documentation