Skip to content

dataunlocker/gatsby-plugin-dataunlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4fe5480 · Sep 28, 2021

History

6 Commits
Sep 27, 2021
Sep 27, 2021
Sep 27, 2021
Sep 27, 2021
Sep 27, 2021
Sep 27, 2021
Sep 23, 2021
Sep 27, 2021
Sep 27, 2021
Sep 27, 2021
Sep 28, 2021

Repository files navigation

gatsby-plugin-dataunlocker

Node.js package Package version

DataUnlocker integration with Gatsby-powered websites.

This means each time your website is built, DataUnlocker's script is injected automatically. You don't need to manually inject DataUnlocker's script, but you still need to create proxy endpoints in DataUnlocker Admin Console.

Usage

Add gatsby-plugin-dataunlocker to your project with:

npm install gatsby-plugin-dataunlocker

Now in your gatsby-config.js, use the following:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-dataunlocker',
      options: {
        propertyId: '6751714b4c5980736a4b6aaa', // Required. Your DataUnlocker property ID.
        scriptVersion: 'latest', // Optional. Use 'latest' or a specific script version like '3.0.3'.
      },
    },
  ],
};

Notes

  • This plugin will patch every single output HTML file of your website. Pathcing will take some time if you have a lot of pages on your website, as plugin processes approximately 6 pages every second.
  • In case DataUnlocker's API fails to patch HTML files, it will output errors to the build log, but the build itself won't fail. Check the API availability here.

License

MIT © DataUnlocker

About

DataUnlocker's integration with Gatsby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published