/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/invalid-multi-match.mdx
29 строк
506 B
Delba de Oliveira
docs: Migrate error messages to MDX and App Router. (#52038)
05 июл 2023, 16:11
Не верифицирован
05 июл 2023, 16:11
44d1a1c
Код
Авторство
О чём код?
--- 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*' } ```