Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stac-api): next link and trailing slash bug in stac api url #358

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def stage_name(self) -> str:
def get_stac_catalog_url(self) -> Optional[str]:
"""Infer stac catalog url based on whether the app is configured to deploy the catalog to a custom subdomain or to a cloudfront route"""
if self.veda_custom_host and self.veda_stac_root_path:
return f"https://{veda_app_settings.veda_custom_host}{veda_app_settings.veda_stac_root_path}/"
return f"https://{veda_app_settings.veda_custom_host}{veda_app_settings.veda_stac_root_path}"
if (
self.veda_domain_create_custom_subdomains
and self.veda_domain_hosted_zone_name
Expand Down
2 changes: 1 addition & 1 deletion stac_api/runtime/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logging.getLogger("mangum.lifespan").setLevel(logging.ERROR)
logging.getLogger("mangum.http").setLevel(logging.ERROR)

handler = Mangum(app, lifespan="auto", api_gateway_base_path=app.root_path)
handler = Mangum(app, lifespan="auto")

# Add tracing
handler.__name__ = "handler" # tracer requires __name__ to be set
Expand Down