From 6b2fb9f91eea8955ce12ff2ca1bdf4efa57b1245 Mon Sep 17 00:00:00 2001 From: hannahhoward Date: Fri, 30 Aug 2024 19:59:09 -0700 Subject: [PATCH] feat(filecoin): fix HOSTED_ZONE usage in Filecoin stack --- README.md | 4 ++-- stacks/filecoin-stack.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 069f539e..0369b22f 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,9 @@ Please notice that appropriate environment variables must be set for the develop Ensure the following variables are set in the env when deploying -#### `HOSTED_ZONE` +#### `HOSTED_ZONES` -The root domain to deploy the w3up API to. e.g `up.web3.storage`. The value should match a hosted zone configured in route53 that your aws account has access to. +The root domain(s) to deploy the w3up API to. e.g `up.web3.storage`. The value should match a hosted zone configured in route53 that your aws account has access to. Multiple zones can be specified, in which case they are seperated by a comma, and this will cause deployment to each specified zone. #### `ROUNDABOUT_HOSTED_ZONE` diff --git a/stacks/filecoin-stack.js b/stacks/filecoin-stack.js index 0b2c9e4e..c65eb838 100644 --- a/stacks/filecoin-stack.js +++ b/stacks/filecoin-stack.js @@ -31,7 +31,7 @@ export function FilecoinStack({ stack, app }) { STOREFRONT_PROOF, START_FILECOIN_METRICS_EPOCH_MS } = getEnv() - const storefrontCustomDomain = getCustomDomain(stack.stage, process.env.HOSTED_ZONE) + const storefrontCustomDomain = getCustomDomain(stack.stage, process.env.HOSTED_ZONES?.split(",")[0]) // Setup app monitoring with Sentry setupSentry(app, stack)