mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
fix: update OG image URL generation for production environment
This commit is contained in:
@@ -37,7 +37,9 @@ export async function generateMetadata(
|
|||||||
|
|
||||||
const ogUrl = new URL(
|
const ogUrl = new URL(
|
||||||
`/${locale}/api/og`,
|
`/${locale}/api/og`,
|
||||||
process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000",
|
process.env.NODE_ENV === "production"
|
||||||
|
? "https://dokploy.com"
|
||||||
|
: "http://localhost:3000",
|
||||||
);
|
);
|
||||||
ogUrl.searchParams.set("slug", slug);
|
ogUrl.searchParams.set("slug", slug);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user