Skip to content

Commit e164e32

Browse files
authored
fix(build): fixed build (#893)
1 parent 7461ddf commit e164e32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/sim/lib/branding/metadata.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)