File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export function createMetadata(override: Metadata): Metadata {
6
6
openGraph : {
7
7
title : override . title ?? undefined ,
8
8
description : override . description ?? undefined ,
9
- url : baseUrl ,
10
9
images : '/twitter-card.png' ,
11
10
siteName : 'nextjs.im' ,
12
11
...override . openGraph ,
@@ -23,6 +22,7 @@ export function createMetadata(override: Metadata): Metadata {
23
22
}
24
23
25
24
export const baseUrl =
26
- process . env . NODE_ENV === 'development' || ! process . env . VERCEL_URL
25
+ process . env . NODE_ENV === 'development' ||
26
+ ! process . env . VERCEL_PROJECT_PRODUCTION_URL
27
27
? new URL ( 'http://localhost:3000' )
28
- : new URL ( `https://${ process . env . VERCEL_URL } ` ) ;
28
+ : new URL ( `https://${ process . env . VERCEL_PROJECT_PRODUCTION_URL } ` ) ;
You can’t perform that action at this time.
0 commit comments