netlify-purge-cloudflare-on-deploy
Advanced tools
Comparing version 1.0.4 to 1.0.5
10
index.js
@@ -8,7 +8,9 @@ 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.') | ||
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({ | ||
@@ -15,0 +17,0 @@ inputs, |
{ | ||
"name": "netlify-purge-cloudflare-on-deploy", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Automatically purge Cloudflare cache on Netlify deploy.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3619
43