Next.js Discord

Discord Forum

how to incorporate Bingbot into next.js { Metadata } API?

Answered
Turkish Angora posted this in #help-forum
Open in Discord
Avatar
Turkish AngoraOP
I am setting up a new project and want to optimize the metadata as I start building.

I see that Next.js has a metadata API which I am currently using for my meta tags.

There is a googlebot: tag, but I don’t see any references to Bingbot in next.js?

Can someone point me to the documentation if it exists or have they simply not added support?
Answered by Alfonsus Ardani
furthermore you can create an issue in enxt.js github repo to include bingbot in their metadata API
View full answer

4 Replies

Avatar
Turkish AngoraOP
export const metadata: Metadata = {
title: "example",
description: "example",
robots: {
follow: true,
index: true,
googleBot: {
index: true,
follow: true,
},
bingbot: {
index: true,
follow: true,
},

},
};
This throws an error saying that “bingbot” does not exist as a valid type. I tried “Bingbot” and “bingBot” as well and neither worked.
Avatar
Alfonsus Ardani
you can set custom metadata not implementd by nextjs using the other property
Avatar
Alfonsus Ardani
furthermore you can create an issue in enxt.js github repo to include bingbot in their metadata API
Answer