craftcms / gatsby-helper

Craft CMS helper plugin for Gatsby.
https://plugins.craftcms.com/gatsby-helper
MIT License
15 stars 6 forks source link

Add Gatsby Cloud webhook headers #22

Open fergusfrl opened 2 years ago

fergusfrl commented 2 years ago

Description

As per the Gatsby Cloud documentation, It is possible to supply a Gatsby Cloud webhook with the following headers:

  1. x-gatsby-cloud-data-source
  2. x-gatsby-cache
  3. x-runner-type

gatsby-helper should allow users to add values to these headers. This would result in users being able to customise a Gatsby Cloud build to their needs.

Example - Clear Cache and Build

curl -X POST https://webhook.gatsbyjs.com/hooks/builds/trigger/<site id> --header "x-gatsby-cache: false"
fergusfrl commented 2 years ago

Not a bug - but there was no option for a feature request.