Integration

Gatsby

Gatsby is a React-based static site generator. Here we will see how we can use our Headless CMS to power the contents for your Gatsby site. To get started, you first need to install the Dialoguewise plugin like this:

npm install --save gatsby-source-dialoguewise

Next, you need to configure it in your gatsby-config.js.

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-dialoguewise`,
      options: {
        accessToken: "Provide your access token.",
        dialogues: [
          {
            slug: "Provide the slug",
            isPilot: false,
            //Any variables you need to pass. This is optional.
            variableList: {
              "@variable-name": "variable value",
            },
          },
        ],
      },
    },
  ],
};