Unverified Commit d6405909 authored by Manu's avatar Manu Committed by GitHub

Change duplicated redirect in examples (#19479)

The code here should contain a regex path matching example, as stated in the comment; but it is the same as the wildcard path matching example above.

https://nextjs.org/docs/api-reference/next.config.js/redirects#regex-path-matching
parent 532a5bcc
......@@ -25,8 +25,8 @@ module.exports = {
},
// Regex Path Matching - The regex below will match `/post/123` but not `/post/abc`
{
source: '/post/:slug*',
destination: '/news/:slug*',
source: '/post/:slug(\\d{1,})',
destination: '/news/:slug',
permanent: false,
},
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment