Problem/Motivation

On Gatsby Cloud it's not possible to use gatsby-source-graphql to trigger previews as it expects the Gatsby site to use gatsby-source-drupal. While gatsby-source-drupal is the recommended way, it should still be possible for gatsby-source-graphql to trigger a build. On top of this, other custom source plugins should be able to work for basic preview functionality (see https://www.drupal.org/project/gatsby/issues/3302739)

Steps to reproduce

Try used gatsby-source-graphql with this module on Gatsby cloud.

Proposed resolution

Add a custom header that Gatsby Cloud will use to allow defining which source plugin is used.

Remaining tasks

Need to add an option to the admin form for an optional source plugin name that is passed in as a header in all webhook requests.

Issue fork gatsby-3307224

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codekarate created an issue. See original summary.

  • codekarate committed 0b6a579 on 2.0.x
    Issue #3307224 by codekarate: Allow basic support for gatsby-source-...
codekarate’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

damienmckenna’s picture

Assigned: codekarate » Unassigned
Parent issue: » #3247968: Plan for Gatsby 2.0.0