Socket
Socket
Sign inDemoInstall

netlify-purge-cloudflare-on-deploy

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    netlify-purge-cloudflare-on-deploy

Automatically purge Cloudflare cache on Netlify deploy.


Version published
Weekly downloads
382
increased by6.11%
Maintainers
1
Install size
3.51 kB
Created
Weekly downloads
 

Readme

Source

netlify-purge-cloudflare-on-deploy

Automatically purge Cloudflare cache on Netlify deploy.

From Cloudflare, you'll need:

  • Your Cloudflare email address.
  • Your Zone ID. Go to your Cloudflare dashboard, enter your website, and look in the bottom right hand corner under 'API'.
  • Your Cloudflare API key.

Strictly this plugin triggers the cache purge before deploy (but after build), as this is the only functionality Netlify provides.

In Netlify, go to Seetings -> Build & Deploy -> Environment -> Environment variables and set up:

  • CLOUDFLARE_EMAIL
  • CLOUDFLARE_ZONE_ID
  • CLOUDFLARE_API_KEY

netlify.toml template

[[plugins]]
package = "./plugins/netlify-purge-cloudflare-on-deploy"

Keywords

FAQs

Last updated on 04 Jun 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc