Skip to content

Commit

Permalink
Merge branch 'main' into mv/ensure-unique
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Apr 3, 2024
2 parents e8a3d35 + a96de22 commit 5e3494a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fixbackend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,9 @@ def filter(self, record: logging.LogRecord) -> bool:
@alru_cache(maxsize=1)
async def load_app_from_cdn() -> bytes:
async with httpx.AsyncClient() as client:
log.info("Loading app from CDN")
response = await client.get(f"{cfg.frontend_cdn_origin()}/index.html")
app_url = f"{cfg.frontend_cdn_origin()}/index.html"
log.info(f"Loading app from CDN {app_url}")
response = await client.get(app_url)
log.info("Loaded app from CDN")
body = response.content
return body
Expand Down

0 comments on commit 5e3494a

Please sign in to comment.