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

Commit b04f6c3

Browse files
caesarbellCaesar Bell
andauthored
* Update stagingJobHandler.ts This is a quick patch to see the boolean value appear in the log. It will be removed once we verify the build in Gatsby Cloud. * 🚨 Prettier lint fix * 🐛 DOP-3620 moves envs over to enhance setup to be properly read --------- Co-authored-by: Caesar Bell <[email protected]>
1 parent 5d395cf commit b04f6c3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ export class WorkerEnvConstruct extends Construct {
2525
const dbUsername = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/username`);
2626
const dbHost = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/host`);
2727

28+
// adds the feature flag & POST URL
29+
const gatsbyCloudPreviewWebhookFeature = StringParameter.valueFromLookup(
30+
this,
31+
`${ssmPrefix}/flag/preview_webhook_enable`
32+
);
33+
const gatsbyCloudPreviewWebhookURL = StringParameter.valueFromLookup(
34+
this,
35+
`/docs/worker_pool/preview_webhook/snooty_gatsby_cloud_test/data_source`
36+
);
37+
2838
const githubBotUsername = StringParameter.valueFromLookup(this, `${ssmPrefix}/github/bot/username`);
2939

3040
const npmEmail = StringParameter.valueFromLookup(this, `${ssmPrefix}/npm/email`);
@@ -43,6 +53,8 @@ export class WorkerEnvConstruct extends Construct {
4353
this.environment = {
4454
...secureStrings,
4555
STAGE: env,
56+
GATSBY_CLOUD_PREVIEW_WEBHOOK_ENABLED: gatsbyCloudPreviewWebhookFeature,
57+
GATSBY_CLOUD_PREVIEW_WEBHOOK_URL: gatsbyCloudPreviewWebhookURL,
4658
SNOOTY_ENV: envShortToFullName(env),
4759
MONGO_ATLAS_USERNAME: dbUsername,
4860
MONGO_ATLAS_HOST: dbHost,

infrastructure/ecs-main/ecs_service.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ Resources:
5858
Value: ${self:custom.previewBuildEnabled}
5959
- Name: FEATURE_FLAG_UPDATE_PAGES
6060
Value: ${self:custom.featureFlagUpdatePages}
61-
- Name: GATSBY_CLOUD_PREVIEW_WEBHOOK_URL
62-
Value: ${self:custom.gatsbyCloudPreviewWebhookURL}
63-
- Name: GATSBY_CLOUD_PREVIEW_WEBHOOK_ENABLED
64-
Value: ${self:custom.gatsbyCloudPreviewWebhookFeature}
6561
- Name: GATSBY_TEST_SEARCH_UI
6662
Value: ${self:custom.featureFlagSearchUI}
6763
- Name: FASTLY_MAIN_TOKEN

infrastructure/ecs-main/serverless.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ custom:
116116
featureFlagUpdatePages: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/update_pages}
117117
featureFlagSearchUI: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/search_ui}
118118
gatsbyTestEmbedVersions: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/embedded_versions}
119-
gatsbyCloudPreviewWebhookFeature: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/preview_webhook_enable}
120-
gatsbyCloudPreviewWebhookURL: ${ssm:/docs/worker_pool/preview_webhook/snooty_gatsby_cloud_test/data_source}
121119
fastlyMainToken: ${ssm:/env/${self:provider.stage}/docs/worker_pool/fastly/docs/main/token}
122120
fastlyMainServiceId: ${ssm:/env/${self:provider.stage}/docs/worker_pool/fastly/docs/main/service_id}
123121
fastlyCloudManagerToken: ${ssm:/env/${self:provider.stage}/docs/worker_pool/fastly/docs/cloudmanager/token}

0 commit comments

Comments
 (0)