fix: ensure metadata points to production url (#2180)

This commit is contained in:
Alex
2025-08-10 01:47:02 +08:00
committed by GitHub
parent eedb52be84
commit bdef284c4d
+2 -2
View File
@@ -34,6 +34,6 @@ export function createMetadata(override: Metadata): Metadata {
}
export const baseUrl =
process.env.NODE_ENV === 'development' || !process.env.VERCEL_URL
process.env.NODE_ENV === 'development' || !process.env.VERCEL_PROJECT_PRODUCTION_URL
? new URL('http://localhost:3000')
: new URL(`https://${process.env.VERCEL_URL}`);
: new URL(`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`);