Skip to content

Commit 0f138f5

Browse files
committed
remove default API url
1 parent 8e40f0c commit 0f138f5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

infrastructure/aws/cdk/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ def __init__( # noqa: C901
242242
},
243243
)
244244

245-
if eostac_settings.stac_browser_github_tag is not None:
245+
if eostac_settings.stac_api_custom_domain_name is not None:
246246
assert (
247-
eostac_settings.stac_api_custom_domain_name is not None
248-
), "stac_api_custom_domain_name must be set if stac_browser_github_tag is not None. The browser deployment needs a resolved STAC API url at deployment time and so needs to rely on a predefined custom domain name."
247+
eostac_settings.stac_browser_github_tag is not None
248+
), "stac_browser_github_tag must be set if stac_api_custom_domain_name is not None."
249249
stac_browser_bucket = s3.Bucket(
250250
self,
251251
"stac-browser-bucket",

infrastructure/aws/cdk/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ class eoSTACSettings(BaseSettings):
5757

5858
timeout: int = 10
5959
memory: int = 256
60-
stac_browser_github_tag: None | str = "v3.1.0" # if not none, will try to deploy this version of radiant earth stac browser
61-
stac_api_custom_domain_name: None | str = "https://stac.eoapi.dev"
60+
stac_browser_github_tag: None | str = "v3.1.0"
61+
stac_api_custom_domain_name: None | str = (
62+
None # if not none, will try to deploy a browser with the above tag
63+
)
6264
model_config = {
6365
"env_prefix": "CDK_EOAPI_STAC_",
6466
"env_file": ".env",

0 commit comments

Comments
 (0)