Next.js Discord

Discord Forum

Metadata file conventions generate with localhost

Unanswered
Taiwan Dog posted this in #help-forum
Open in Discord
Taiwan DogOP

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