vercel / next.js

The React Framework
https://nextjs.org
MIT License
127k stars 26.99k forks source link

Improve Metadata API documentation #63930

Open uxuySafe opened 7 months ago

uxuySafe commented 7 months ago

What is the improvement or update you wish to see?

I hope your website documentation is easy to read and provides a clear introduction to the API. For example, it is very difficult for me to set up a meta using app router. It feels like the most uncomfortable document I have ever seen. It is also recommended to support multiple languages.

Is there any context that might help us understand?

https://nextjs.org/docs/app/building-your-application/optimizing/metadata I want to set up , but it takes me a long time to find out how to set it up from the documentation. Because I used this latest version before, I regret it very much. If that were the case, I wouldn’t recommend it to my friends.

Does the docs page already exist? Please link to it.

No response

DX-2396

balazsorban44 commented 7 months ago

Thanks for the feedback/suggestion!

As for https://nextjs.org/docs/app/building-your-application/optimizing/metadata, could you point out specific things you did not like or felt it was hard to understand, so we can improve? :pray: Is it the examples snippets, the structure, the wording, something else maybe?

chahatbhatia1 commented 5 months ago

@balazsorban44 I would like to know about the manifest property in the metadata object. After upgrading to Next.js 14 version, we are experiencing a CORS issue while requesting the manifest json file. This is due the fact that when we include the manifest in the generateMetadata function, it is appending a link tag like this:

<link rel='manifest' href='link to manifest json file...' crossOrigin='use-credentials' />

Could you please help how can we remove this crossOrigin='use-credentials' attribute from manifest?