Next.js has a system to add helpful links to warnings and errors.
This allows the logged message to be short while giving a broader description and instructions on how to solve the warning/error on the documentation.
In general, all warnings and errors added should have these links attached.
Below are the steps to add a new link:
- Run
pnpm new-error
which will create the error document and update the manifest automatically. - At the end of the command the URL for the error will be provided, add that to your error.