silverwolf-x/project / contributing /core /adding-error-links.md
silverwolf-x's picture
|
download
raw
570 Bytes
# Adding Warning and Error Descriptions
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:
1. Run `pnpm new-error` which will create the error document and update the manifest automatically.
2. At the end of the command the URL for the error will be provided, add that to your error.

Xet Storage Details

Size:
570 Bytes
·
Xet hash:
493a2c4fc4a80983431b94aa936cfff8daf85202e13242d5fe9324ae89e4e066

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.