Skip to content

Commit 1a3258f

Browse files
committed
fix: update OG image URL generation for production environment
1 parent f385829 commit 1a3258f

File tree

1 file changed

+3
-1
lines changed
  • apps/website/app/[locale]/blog/[slug]

1 file changed

+3
-1
lines changed

apps/website/app/[locale]/blog/[slug]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export async function generateMetadata(
3737

3838
const ogUrl = new URL(
3939
`/${locale}/api/og`,
40-
process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000",
40+
process.env.NODE_ENV === "production"
41+
? "https://dokploy.com"
42+
: "http://localhost:3000",
4143
);
4244
ogUrl.searchParams.set("slug", slug);
4345

0 commit comments

Comments
 (0)