netlify-purge-cloudflare-on-deploy
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,2 +8,7 @@ const fetch = require('node-fetch'); | ||
module.exports = { | ||
onPreBuild: ({utils}) => | ||
if(!CLOUDFLARE_API_KEY || !CLOUDFLARE_ZONE_ID || !CLOUDFLARE_EMAIL) { | ||
return utils.build.failBuild('You need to add CLOUDFLARE_API_KEY, CLOUDFLARE_ZONE_ID and CLOUDFLARE_EMAIL to your Netlify environment variables.') | ||
} | ||
} | ||
async onEnd({ | ||
@@ -10,0 +15,0 @@ inputs, |
{ | ||
"name": "netlify-purge-cloudflare-on-deploy", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Automatically purge Cloudflare cache on Netlify deploy.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3597
41