diff --git a/cdk-infra/lib/constructs/worker/worker-env-construct.ts b/cdk-infra/lib/constructs/worker/worker-env-construct.ts index 13e088782..d9f2fbbdb 100644 --- a/cdk-infra/lib/constructs/worker/worker-env-construct.ts +++ b/cdk-infra/lib/constructs/worker/worker-env-construct.ts @@ -43,6 +43,7 @@ export class WorkerEnvConstruct extends Construct { const gatsbyBaseUrl = StringParameter.valueFromLookup(this, `${ssmPrefix}/frontend/base_url`); // doing this for the time being, but I think we don't need to necessarily retrieve this from ssm for feature branches, nor would we want to in that case const previewBuildEnabled = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/preview_build/enabled`); + const featureFlagUpdatePages = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/update_pages`); const entitlementCollection = StringParameter.valueFromLookup( this, `${ssmPrefix}/atlas/collections/user/entitlements` @@ -67,6 +68,7 @@ export class WorkerEnvConstruct extends Construct { GITHUB_BOT_USERNAME: githubBotUsername, GATSBY_BASE_URL: gatsbyBaseUrl, PREVIEW_BUILD_ENABLED: previewBuildEnabled, + FEATURE_FLAG_UPDATE_PAGES: featureFlagUpdatePages, USER_ENTITLEMENT_COL_NAME: entitlementCollection, NPM_EMAIL: npmEmail, REPO_BRANCHES_COL_NAME: repoBranchesCollection, diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index 3f9059cf6..accb96f2d 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -671,7 +671,7 @@ export abstract class JobHandler { if (!gatsbySiteId) { const message = `User ${githubUsername} does not have a Gatsby Cloud Site ID.`; this._logger.warn('Gatsby Cloud Preview Webhook', message); - throw new Error(message); + return; } const url = `${previewWebhookURL}/${gatsbySiteId}`;