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

gatsby-plugin-userbase

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-userbase

Gatsby plugin for userbase

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-plugin-userbase

Plugin for setting up the userbase object globally in gatsby projects

Usage

You'll need dotenv for environment variables

https://www.npmjs.com/package/dotenv

Install userbase:

npm install userbase-js gatsby-plugin-userbase

or

yarn add userbase-js gatsby-plugin-userbase

Set up your environment variables:

.env.development and .env.production

USERBASE_APP_ID=YOUR_USERBASE_APP_ID

Now go to gatsby-config.js and add gatsby-plugin-userbase to the plugins array with the following options:

require("dotenv").config({
  path: `.env.${process.env.NODE_ENV}`,
})

module.exports = {
  plugins: [
    {
      resolve: "gatsby-plugin-userbase",
      options: {
        APP_ID: process.env.USERBASE_APP_ID,
      },
    },

  ],
}

run gatsby develop

You should have access to the userbase object globally from the browser

Keywords

FAQs

Package last updated on 01 Mar 2020

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