@kdcio/gatsby-source-abucms

0.2.2 • Public • Published

gatsby-source-abucms

Source plugin for pulling data from AbuCMS into GatsbyJS. It creates links between models and asset so they can be queried in Gatsby using GraphQL.

ver size build Known Vulnerabilities Quality Gate Status Code Smells Coverage license

⚠️ This plugin only works on Gatsby v3+.

Install

npm install gatsby-source-abucms

Configuration

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-abucms`,
      options: {
        baseUrl: "https://xxxxxxxx.execute-api.us-east-1.amazonaws.com",
        apiBase: "prod", // deployment stage
        models: ["blog", "home_page", "about_page", "social_profile"], // modelId
        apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        useCache: false, // default is true. set to false if you want to debug.
      },
    },
  ],
};

Example

Gatsby's blog starter with AbuCMS

Package Sidebar

Install

npm i @kdcio/gatsby-source-abucms

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

29.2 kB

Total Files

15

Last publish

Collaborators

  • ianpogi5
  • mbungalso