From 64e224134f18524cf2fb85f01dd1d50677cb00e3 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 12 Jan 2024 16:33:02 -0500 Subject: [PATCH 1/5] Add error decoder redirects --- vercel.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vercel.json b/vercel.json index 138571fd..4b8bfefe 100644 --- a/vercel.json +++ b/vercel.json @@ -381,6 +381,18 @@ "destination": "https://github.com/facebook/react/issues/18178#issuecomment-595846312", "permanent": false }, + { + "source": "/docs/error-decoder.html", + "has": [ + { + "type": "query", + "key": "invariant", + "value": "137" + } + ], + "destination": "https://react.dev/errors/137", + "permanent": true + }, { "source": "/version/15.6", "destination": "https://react-legacy.netlify.app", From 8724d8c7a25751d950c2dc9f3527aa7f1336e078 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 12 Jan 2024 16:47:13 -0500 Subject: [PATCH 2/5] query param matching --- vercel.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index 4b8bfefe..5eb8bd26 100644 --- a/vercel.json +++ b/vercel.json @@ -387,10 +387,10 @@ { "type": "query", "key": "invariant", - "value": "137" + "value": "" } ], - "destination": "https://react.dev/errors/137", + "destination": "https://react.dev/errors/:code", "permanent": true }, { From e20fbdff76c66c0e89c0e61071438dab47811bb5 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 12 Jan 2024 16:54:58 -0500 Subject: [PATCH 3/5] try dis --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 5eb8bd26..03c3ed15 100644 --- a/vercel.json +++ b/vercel.json @@ -387,7 +387,7 @@ { "type": "query", "key": "invariant", - "value": "" + "value": "(?)" } ], "destination": "https://react.dev/errors/:code", From c5073299947730fe5eea8e7f55bcf4cbcbe43eed Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 12 Jan 2024 16:57:32 -0500 Subject: [PATCH 4/5] or dis --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 03c3ed15..6c820337 100644 --- a/vercel.json +++ b/vercel.json @@ -387,7 +387,7 @@ { "type": "query", "key": "invariant", - "value": "(?)" + "value": "()" } ], "destination": "https://react.dev/errors/:code", From 24d8daeee26acd9283cd22add2eb08bd5d421164 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 12 Jan 2024 17:01:32 -0500 Subject: [PATCH 5/5] or dis (final) --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 6c820337..78eb8dd7 100644 --- a/vercel.json +++ b/vercel.json @@ -387,7 +387,7 @@ { "type": "query", "key": "invariant", - "value": "()" + "value": "(?.*)" } ], "destination": "https://react.dev/errors/:code",