New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-cloudcms

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-cloudcms

Gatsby plugin for accessing your Cloud CMS projects

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

gatsby-source-cloudcms

Source plugin for adding your cloudcms content and attachments into your Gatsby.js site

Install

npm install gatsby-source-cloudcms
or
yarn add gatsby-source-cloudcms

Usage

// In your gatsby-config.js
const gitanaJson = require('./gitana.json');

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-cloudcms`,
      options: {
        keys: gitanaJson,
        repositoryId: `myRepositoryId`,
        branchId: `myBranchId`
      }
    }
  ]
}

Note that you will need to provide API Keys to cloudcms, as well as a repositoryId and branchId (Help).

You can additionally provide a contentQuery to options with MongoDB syntax to specify what subset of your content to source. For example, if my site only contained content of type store:book and store:author, I could use the following contentQuery:

{
    "_type": {
        "$in": ["store:book", "store:author"]
    }
}

More on queries

Example CloudCMS Gatsby Site

Keywords

FAQs

Package last updated on 15 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc