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 <jkassens@meta.com>

DiffTrain build for commit https://github.com/facebook/react/commit/b3003047101b4c7a643788a8faf576f7e370fb45.
This commit is contained in:
rickhanlonii
2024-01-18 02:45:40 +00:00
parent 8d091c6f8a
commit ac8a888afc
7 changed files with 9 additions and 9 deletions
@@ -25540,7 +25540,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "18.3.0-canary-5c607369c-20240116";
var ReactVersion = "18.3.0-canary-b30030471-20240117";
// Might add PROFILE later.
@@ -9122,7 +9122,7 @@ var devToolsConfig$jscomp$inline_1037 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-5c607369c-20240116",
version: "18.3.0-canary-b30030471-20240117",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1230 = {
@@ -9153,7 +9153,7 @@ var internals$jscomp$inline_1230 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-5c607369c-20240116"
reconcilerVersion: "18.3.0-canary-b30030471-20240117"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9550,7 +9550,7 @@ var devToolsConfig$jscomp$inline_1079 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-5c607369c-20240116",
version: "18.3.0-canary-b30030471-20240117",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1271 = {
@@ -9581,7 +9581,7 @@ var internals$jscomp$inline_1271 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-5c607369c-20240116"
reconcilerVersion: "18.3.0-canary-b30030471-20240117"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-canary-5c607369c-20240116";
var ReactVersion = "18.3.0-canary-b30030471-20240117";
// ATTENTION
// When adding new symbols to this file,
@@ -539,4 +539,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-5c607369c-20240116";
exports.version = "18.3.0-canary-b30030471-20240117";
@@ -535,7 +535,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-5c607369c-20240116";
exports.version = "18.3.0-canary-b30030471-20240117";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
5c607369ceebe56d85175df84b7b6ad58dd25e1f
b3003047101b4c7a643788a8faf576f7e370fb45