Skip to content

Commit d6975ca

Browse files
committed
fix(web): adaptive metadataBase so OG image resolves on Vercel preview and production before custom domain alias
1 parent bb9c3ae commit d6975ca

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/web/src/app/layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ const ibmPlexMono = IBM_Plex_Mono({
88
weight: ['400', '500', '700'],
99
});
1010

11-
const SITE_URL = 'https://sheetforge.dev';
11+
const SITE_URL =
12+
process.env.NEXT_PUBLIC_SITE_URL ||
13+
(process.env.VERCEL_PROJECT_PRODUCTION_URL
14+
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
15+
: process.env.VERCEL_URL
16+
? `https://${process.env.VERCEL_URL}`
17+
: 'https://sheetforge.dev');
1218
const title = 'sheetforge — Google Sheets as a backend that actually behaves like one';
1319
const description =
1420
'Open-source, race-condition-safe Google Sheets backend. 1000 concurrent writes, 1000 ordered rows. Typed TypeScript & Python SDKs generated from your sheet headers. Self-host today — hosted SaaS coming soon.';

0 commit comments

Comments
 (0)