Skip to content

Commit e9f567a

Browse files
fix: bundle og-image.png in API container
The og-image.png was in app/public/ which only exists in the frontend container. Move to api/static/ so it's bundled in the API Docker image. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ab8e67b commit e9f567a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/routers/og_images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def _get_static_og_image() -> bytes:
2323
"""Load static og-image.png (cached in memory)."""
2424
global _STATIC_OG_IMAGE
2525
if _STATIC_OG_IMAGE is None:
26-
path = Path(__file__).parent.parent.parent / "app" / "public" / "og-image.png"
26+
# Use api/static/ which is bundled in the Docker image
27+
path = Path(__file__).parent.parent / "static" / "og-image.png"
2728
try:
2829
_STATIC_OG_IMAGE = path.read_bytes()
2930
except FileNotFoundError as exc:

api/static/og-image.png

463 KB
Loading

0 commit comments

Comments
 (0)