-
SummaryAnyone else got this warning message?
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
Add metadataBase:
|
Beta Was this translation helpful? Give feedback.
-
I have the same issue in dev mode and in production as well. I don't have any metadataBase variable for the URL. So what should I do ? |
Beta Was this translation helpful? Give feedback.
-
Likewise, I am seeing this in production. A deployment from a few months ago had the metadataBase set correctly and a new prod deployment uses the generated vercel url and is ignoring the base url. |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue. I have used export const metadata = {
...metaObject('Appointment'),
};
export const metaObject = (
title: string,
openGraph?: OpenGraph,
description: string = "A default description"
): Metadata => {
return {
title: title ,
description: description,
metadataBase: new URL('https://my_url.vercel.app'),
openGraph: openGraph ?? {
title: title ,
description: description,
url: 'https://my_url.vercel.app',
siteName: '', // https://developers.google.com/search/docs/appearance/site-names
images: {
url: 'https://a_valid_amazons3_url.png',
width: 1200,
height: 630,
},
locale: 'en_US',
type: 'website',
},
};
}; But i still get the error when visiting the page. |
Beta Was this translation helpful? Give feedback.
Add metadataBase: