Skip to content

Commit

Permalink
fix assets_base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq committed Oct 28, 2024
1 parent b982014 commit 98c3c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion services/rows/src/rows/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:

url_signer = get_cloudfront_signer(cloudfront_config=app_config.cloudfront)
url_preparator = URLPreparator(
url_signer=url_signer, hf_endpoint=app_config.common.hf_endpoint, assets_base_url=app_config.assets.base_url
url_signer=url_signer,
hf_endpoint=app_config.common.hf_endpoint,
assets_base_url=app_config.cached_assets.base_url,
)
cached_assets_storage_client = StorageClient(
protocol=app_config.cached_assets.storage_protocol,
Expand Down
4 changes: 3 additions & 1 deletion services/search/src/search/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
queue_resource = QueueMongoResource(database=app_config.queue.mongo_database, host=app_config.queue.mongo_url)
url_signer = get_cloudfront_signer(cloudfront_config=app_config.cloudfront)
url_preparator = URLPreparator(
url_signer=url_signer, hf_endpoint=app_config.common.hf_endpoint, assets_base_url=app_config.assets.base_url
url_signer=url_signer,
hf_endpoint=app_config.common.hf_endpoint,
assets_base_url=app_config.cached_assets.base_url,
)
cached_assets_storage_client = StorageClient(
protocol=app_config.cached_assets.storage_protocol,
Expand Down

0 comments on commit 98c3c55

Please sign in to comment.