Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit ac38913

Browse files
authored
Add missing feature flag for persistence module (#891)
1 parent c2640e4 commit ac38913

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cdk-infra/lib/constructs/worker/worker-env-construct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class WorkerEnvConstruct extends Construct {
4343
const gatsbyBaseUrl = StringParameter.valueFromLookup(this, `${ssmPrefix}/frontend/base_url`);
4444
// 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
4545
const previewBuildEnabled = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/preview_build/enabled`);
46+
const featureFlagUpdatePages = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/update_pages`);
4647
const entitlementCollection = StringParameter.valueFromLookup(
4748
this,
4849
`${ssmPrefix}/atlas/collections/user/entitlements`
@@ -67,6 +68,7 @@ export class WorkerEnvConstruct extends Construct {
6768
GITHUB_BOT_USERNAME: githubBotUsername,
6869
GATSBY_BASE_URL: gatsbyBaseUrl,
6970
PREVIEW_BUILD_ENABLED: previewBuildEnabled,
71+
FEATURE_FLAG_UPDATE_PAGES: featureFlagUpdatePages,
7072
USER_ENTITLEMENT_COL_NAME: entitlementCollection,
7173
NPM_EMAIL: npmEmail,
7274
REPO_BRANCHES_COL_NAME: repoBranchesCollection,

src/job/jobHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export abstract class JobHandler {
671671
if (!gatsbySiteId) {
672672
const message = `User ${githubUsername} does not have a Gatsby Cloud Site ID.`;
673673
this._logger.warn('Gatsby Cloud Preview Webhook', message);
674-
throw new Error(message);
674+
return;
675675
}
676676

677677
const url = `${previewWebhookURL}/${gatsbySiteId}`;

0 commit comments

Comments
 (0)