From e164e32c5b0756637afa5a03ca2db38cbf96e6b8 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 6 Aug 2025 21:48:11 -0700 Subject: [PATCH] fix(build): fixed build (#893) --- apps/sim/lib/branding/metadata.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/sim/lib/branding/metadata.ts b/apps/sim/lib/branding/metadata.ts index bc7e75be8d..d8132a1ebe 100644 --- a/apps/sim/lib/branding/metadata.ts +++ b/apps/sim/lib/branding/metadata.ts @@ -40,7 +40,9 @@ export function generateBrandedMetadata(override: Partial = {}): Metad referrer: 'origin-when-cross-origin', creator: brand.name, publisher: brand.name, - metadataBase: new URL(env.NEXT_PUBLIC_APP_URL), + metadataBase: env.NEXT_PUBLIC_APP_URL + ? new URL(env.NEXT_PUBLIC_APP_URL) + : new URL('https://sim.ai'), alternates: { canonical: '/', languages: { @@ -61,7 +63,7 @@ export function generateBrandedMetadata(override: Partial = {}): Metad openGraph: { type: 'website', locale: 'en_US', - url: env.NEXT_PUBLIC_APP_URL, + url: env.NEXT_PUBLIC_APP_URL || 'https://sim.ai', title: defaultTitle, description: defaultDescription, siteName: brand.name,