Skip to content

Commit

Permalink
fix: update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
botanical committed Aug 12, 2024
1 parent 9de201d commit be72cc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions routes/infrastructure/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class vedaRouteSettings(BaseSettings):
None, description="Shared Web ACL ID ARN for CloudFront Distribution"
)

custom_host: str = Field(
None,
description="Complete url of custom host including subdomain. Used to infer url of stac-api before app synthesis.",
)

class Config:
"""model config"""

Expand Down
5 changes: 2 additions & 3 deletions routes/infrastructure/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ def __init__(
description="Origin Access Control for STAC Browser",
),
)

if (
stage == "production"
and veda_route_settings.domain_hosted_zone_name == "openveda.cloud"
veda_route_settings.domain_hosted_zone_name == veda_route_settings.custom_host

):
self.cf_domain_names = [
f"{stage}.{veda_route_settings.domain_hosted_zone_name}",
Expand Down

0 comments on commit be72cc2

Please sign in to comment.