Skip to content

Commit 17c3171

Browse files
authored
Add error decoder redirects (#5)
* Add error decoder redirects * query param matching * try dis * or dis * or dis (final)
1 parent c2cb18d commit 17c3171

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vercel.json

+12
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,18 @@
381381
"destination": "https://github.com/facebook/react/issues/18178#issuecomment-595846312",
382382
"permanent": false
383383
},
384+
{
385+
"source": "/docs/error-decoder.html",
386+
"has": [
387+
{
388+
"type": "query",
389+
"key": "invariant",
390+
"value": "(?<code>.*)"
391+
}
392+
],
393+
"destination": "https://react.dev/errors/:code",
394+
"permanent": true
395+
},
384396
{
385397
"source": "/version/15.6",
386398
"destination": "https://react-legacy.netlify.app",

0 commit comments

Comments
 (0)