Skip to content

Commit

Permalink
Wrong safeguard :P
Browse files Browse the repository at this point in the history
  • Loading branch information
rayangler committed Feb 29, 2024
1 parent ecbb5f1 commit 222eba8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,8 @@ export abstract class JobHandler {

// Call Gatsby Cloud preview webhook after persistence module finishes for staging builds
const isFeaturePreviewWebhookEnabled = process.env.GATSBY_CLOUD_PREVIEW_WEBHOOK_ENABLED?.toLowerCase() === 'true';
if (
key === 'persistence-module' &&
// TEMP-4353: Remove this after testing
// this.name === 'Staging' &&
isFeaturePreviewWebhookEnabled &&
process.env.IS_FEATURE_BRANCH !== 'true'
) {
// TEMP-4353: Restore stg safeguard after done testing
if (key === 'persistence-module' && this.name === 'Staging' && isFeaturePreviewWebhookEnabled) {
await this.callGatsbyCloudWebhook();
await this.callNetlifyWebhook();
}
Expand Down

0 comments on commit 222eba8

Please sign in to comment.