File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ export function generateBrandedMetadata(override: Partial<Metadata> = {}): Metad
4040 referrer : 'origin-when-cross-origin' ,
4141 creator : brand . name ,
4242 publisher : brand . name ,
43- metadataBase : new URL ( env . NEXT_PUBLIC_APP_URL ) ,
43+ metadataBase : env . NEXT_PUBLIC_APP_URL
44+ ? new URL ( env . NEXT_PUBLIC_APP_URL )
45+ : new URL ( 'https://sim.ai' ) ,
4446 alternates : {
4547 canonical : '/' ,
4648 languages : {
@@ -61,7 +63,7 @@ export function generateBrandedMetadata(override: Partial<Metadata> = {}): Metad
6163 openGraph : {
6264 type : 'website' ,
6365 locale : 'en_US' ,
64- url : env . NEXT_PUBLIC_APP_URL ,
66+ url : env . NEXT_PUBLIC_APP_URL || 'https://sim.ai' ,
6567 title : defaultTitle ,
6668 description : defaultDescription ,
6769 siteName : brand . name ,
You can’t perform that action at this time.
0 commit comments