This repository was archived by the owner on Aug 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
cdk-infra/lib/constructs/worker Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments