dillon1000/react

Commit

Update error decoder URL (#27240)

Updates the error decoder to the URL for the new docs site.

- Switches the domain from reactjs.org to react.dev
- Switches to put the error code in the URL for SSG
- All params are still in the query

Example without args:

- Before: `https://reactjs.org/docs/error-decoder.html?invariant=200`
- After: ` https://react.dev/errors/200`

Example with args:
- Before:
`https://reactjs.org/docs/error-decoder.html?invariant=124?args[]=foo&args[]=bar
`
- After: ` https://react.dev/errors/124?args[]=foo&args[]=bar`


Requires: https://github.com/reactjs/react.dev/pull/6214

---------

Co-authored-by: Jan Kassens <[email protected]>
Browse files
Changed paths4 files
First-parent comparison
M packages/shared/__tests__/ReactError-test.internal.js ModifiedM packages/shared/__tests__/ReactErrorProd-test.internal.js ModifiedM packages/shared/formatProdErrorMessage.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…