From 4a54d13be22caeca702ca0bed9ed072ef626ac70 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 18 Feb 2026 21:11:35 -0800 Subject: [PATCH 1/2] fix(web): Set metadataBase to fix og:image URL behind reverse proxy Without metadataBase, Next.js falls back to the raw HTTP request host (localhost:8080) when constructing the absolute og:image URL from opengraph-image.tsx. Setting metadataBase to AUTH_URL ensures the public-facing URL is used instead. Co-Authored-By: Claude Sonnet 4.6 --- packages/web/src/app/layout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web/src/app/layout.tsx b/packages/web/src/app/layout.tsx index 8af5c3a98..c707f511a 100644 --- a/packages/web/src/app/layout.tsx +++ b/packages/web/src/app/layout.tsx @@ -11,6 +11,7 @@ import { PlanProvider } from "@/features/entitlements/planProvider"; import { getEntitlements } from "@sourcebot/shared"; export const metadata: Metadata = { + metadataBase: new URL(env.AUTH_URL), // Using the title.template will allow child pages to set the title // while keeping a consistent suffix. title: { From 776219b12555259d4c4e14ef71f9c0de96d7d1a5 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 18 Feb 2026 21:11:54 -0800 Subject: [PATCH 2/2] chore: Update CHANGELOG for #908 Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aebb5e3d..34d5415d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fixed `og:image` URL resolving to `localhost` instead of the public domain when the app is deployed behind a reverse proxy. [#908](https://github.com/sourcebot-dev/sourcebot/pull/908) + ## [4.11.3] - 2026-02-19 ### Fixed