Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fyrepenguin/gatsby-source-dega

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fyrepenguin/gatsby-source-dega

@factly/gatsby-source-dega Source from [DegaCMS](https://dega.factly.in) API in Gatsby.

  • 1.0.3
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@factly/gatsby-source-dega

Source from [DegaCMS](https://dega.factly.in) API in Gatsby.

Install

npm install --save @factly/gatsby-source-dega

How to use

Prerequisites

First, you need a way to pass environment variables to the build process, so secrets and other secured data aren't committed to source control. I recommend using [dotenv][dotenv] which will then expose environment variables. [Read more about dotenv and using environment variables here][envvars]. Then you can use these environment variables and configure your plugin.

You'll need an API Key and Space Id from dega

Save both to your environment variable file

It should look something like this:

API_KEY=your-api-key-here
SPACE_ID=you-space-id-here

gatsby-config

The plugin sets some defaults for the endpoints and options. Hence you can use it only with the two mandatory entries apiKey and spaceId.

module.exports = {
  plugins: [
    {
      resolve: '@factly/gatsby-source-dega',
      options: {
        // apiKey and spaceId are mandatory
        apiKey: process.env.API_KEY,
        spaceId: process.env.SPACE_ID,
      },
    },
  ],
}

Keywords

FAQs

Package last updated on 09 Sep 2022

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