From d42ea272398be9c6f1f3fa278e69c76dd54fcfec Mon Sep 17 00:00:00 2001 From: hrodmn Date: Thu, 20 Feb 2025 11:24:33 -0600 Subject: [PATCH 1/2] update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 54110c9..daed047 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,5 @@ node_modules/ .ruff_cache/ .env-cdk config.yaml +stac-browser/ +.envrc From f72904968b1230678df2d4a81eaf2c14178bc4f1 Mon Sep 17 00:00:00 2001 From: hrodmn Date: Thu, 20 Feb 2025 11:30:29 -0600 Subject: [PATCH 2/2] clean up config --- browser_config.js | 1 - infrastructure/config.py | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/browser_config.js b/browser_config.js index a3631f9..7d4ffe1 100644 --- a/browser_config.js +++ b/browser_config.js @@ -1,5 +1,4 @@ module.exports = { - catalogUrl: "https://stac.eoapi.dev", catalogTitle: "eoAPI STAC Browser", allowExternalAccess: true, // Must be true if catalogUrl is not given allowedDomains: [], diff --git a/infrastructure/config.py b/infrastructure/config.py index 2ff0d3b..30ab825 100644 --- a/infrastructure/config.py +++ b/infrastructure/config.py @@ -153,14 +153,14 @@ def validate_model(self) -> Self: and therefore `nat_gateway_count` has to be > 0.""" ) - # if ( - # self.stac_browser_version is not None - # and self.stac_api_custom_domain is None - # ): - # raise ValueError( - # """If a STAC browser version is provided, - # a custom domain must be provided for the STAC API""" - # ) + if ( + self.stac_browser_version is not None + and self.stac_api_custom_domain is None + ): + raise ValueError( + """If a STAC browser version is provided, + a custom domain must be provided for the STAC API""" + ) if self.acm_certificate_arn is None and any( [