Gatsby preview does not post JSON to the preview webhook.

Created on 13 April 2023, over 1 year ago
Updated 4 May 2023, over 1 year ago

Problem/Motivation

After enabling the preview functionality in the module, attempted to get the preview build working with Draft status' of nodes. However, the preview build would only ever build the latest published revision.

Steps to reproduce

Set up a Gatsby Cloud build pipeline with CMS preview.
Configure the module to use the preview webhook provided by Gatsby Cloud. Make sure the 'Create log messages of JSON objects sent to the Gatsby preview server' setting is enabled.

After modifying a node that is Published but has Draft revisions after the publish revision, check the watchdog log for the API call to the preview webhook. No JSON payload is listed in the watchdog log entry and this indicates that it's not being sent.

Proposed resolution

Update the code to post the JSON payload to the preview webhook.

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada slydevil Halifax

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024