Next.js Discord

Discord Forum

How to locally test metadata API

Answered
Bighead carp posted this in #help-forum
Open in Discord
Bighead carpOP
How do people locally test what the result of the metadata API for a certain page will look like on Googe/Discord/Reddit? The only way I see is to deploy it somewhere and wait for the cache to revalidate.
Answered by joulev
That’s the only way. Each social media site has a backend service to fetch your page and render the metadata – they are not going to be able to find your metadata on localhost, you have to deploy it somewhere
View full answer

3 Replies

@Bighead carp How do people locally test what the result of the metadata API for a certain page will look like on Googe/Discord/Reddit? The only way I see is to deploy it somewhere and wait for the cache to revalidate.
That’s the only way. Each social media site has a backend service to fetch your page and render the metadata – they are not going to be able to find your metadata on localhost, you have to deploy it somewhere
Answer
Bighead carpOP
Annoying, but thanks