Metadata file conventions generate with localhost
Unanswered
Taiwan Dog posted this in #help-forum
Taiwan DogOP
I have followed this document but the image url is http://localhost:3000/...
My website: https://taroj1205.netlify.app/en
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image
My website: https://taroj1205.netlify.app/en
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image
4 Replies
Taiwan DogOP
can you try adding metadatabase with your proper url
@riský can you try adding metadatabase with your proper url
Taiwan DogOP
export async function generateMetadata({
params: { locale },
}: {
params: { locale: string };
}) {
const t = await getTranslations({ locale, namespace: "metadata" });
return {
title: t("title"),
description: t("description"),
};
}this is all i have
@Taiwan Dog tsx
export async function generateMetadata({
params: { locale },
}: {
params: { locale: string };
}) {
const t = await getTranslations({ locale, namespace: "metadata" });
return {
title: t("title"),
description: t("description"),
};
}
this is all i have
im suggesting adding this field to your generatemetadata https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase