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 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( [