Skip to content

Commit

Permalink
Change duplicated redirect in examples (vercel#19479)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
UnbearableBear authored Nov 24, 2020
1 parent 532a5bc commit d640590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/redirects/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
Expand Down

0 comments on commit d640590

Please sign in to comment.