File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import type { Metadata } from 'next/types' ;
22
33export function createMetadata ( override : Metadata ) : Metadata {
4+ console . log ( 'Metabase URL:' , BASE_URL ) ;
45 return {
56 ...override ,
7+ metadataBase : new URL ( BASE_URL ) ,
68 openGraph : {
79 title : override . title ?? undefined ,
810 description : override . description ?? undefined ,
@@ -22,9 +24,9 @@ export function createMetadata(override: Metadata): Metadata {
2224}
2325
2426export const BASE_URL =
25- process . env . NEXT_PUBLIC_VERCEL_ENV == null ||
26- process . env . NEXT_PUBLIC_VERCEL_ENV === 'development'
27+ ! process . env . NEXT_PUBLIC_VERCEL_URL ||
28+ ! process . env . NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
2729 ? 'http://localhost:3000'
28- : process . env . NEXT_PUBLIC_VERCEL_ENV === 'preview'
30+ : ! process . env . NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
2931 ? `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } `
3032 : `https://${ process . env . NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL } ` ;
You can’t perform that action at this time.
0 commit comments