diff --git a/app/layout.tsx b/app/layout.tsx index 638dbbf..a32b223 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,7 +9,9 @@ import { Header } from '@/components/header' import { Toaster } from '@/components/ui/sonner' export const metadata = { - metadataBase: new URL(`https://${process.env.VERCEL_URL}`), + metadataBase: process.env.VERCEL_URL + ? new URL(`https://${process.env.VERCEL_URL}`) + : undefined, title: { default: 'Next.js AI Chatbot', template: `%s - Next.js AI Chatbot`