rsnext/errors/invalid-multi-match.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

29 lines
506 B
Text

---
title: Invalid Multi-match
---
## Why This Error Occurred
In one of your custom-routes you specified a multi-match `/:path*` and used it in your `destination` without adding the `*` in your `destination` e.g. `destination: '/another/:path'`
## Possible Ways to Fix It
Add `*` to your usage of the multi-match param in your `destination`.
**Before**
```js
{
source: '/:path*',
destination: '/another/:path'
}
```
**After**
```js
{
source: '/:path*',
destination: '/another/:path*'
}
```