Summary
I'm creating this issue to talk about having a great execution for error DX, as well as normalization between the repositories, as there is nothing specific to any context, whatever is best in class would applied to React docs, Next.js docs, etc.
Have links
Examples:
Force permalink
Examples:
Force error message format
Search keywords: -
Summary
I'm creating this issue to talk about having a great execution for error DX, as well as normalization between the repositories, as there is nothing specific to any context, whatever is best in class would applied to React docs, Next.js docs, etc.
Have links
Examples:
However, it feels very broken to force custom pages for every error. You can have a permalink (
/r/URLs) to the right place of the docs instead for this, as well as trivial errors that don't need a docs page. It's duplication of content. So our policy could be to have docs about the error when needed, and avoid custom pages, e.g. https://nextjs.org/docs/messages/get-initial-props-export as much as possible.Force permalink
Examples:
https://nextjs.org/docs/messages/. https://github.com/search?q=repo%3Avercel%2Fnext.js+%22const+url+%3D+%27https%3A%2F%2F%22&type=code&p=2Force error message format
Search keywords: -