/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/invalid-external-rewrite.mdx
15 строк
582 B
Delba de Oliveira
Docs: Move `next.config.js` API pages under a `config` folder, fix headings in TS and ESLint config pages (#72465)
08 ноя 2024, 17:48
Не верифицирован
08 ноя 2024, 17:48
0b35ddd
Код
Авторство
О чём код?
--- title: Invalid External Rewrite --- ## Why This Error Occurred A rewrite was defined with both `basePath: false` and an internal `destination`. Rewrites that capture urls outside of the `basePath` must route externally, as they are intended for proxying in the case of incremental adoption of Next.js in a project. ## Possible Ways to Fix It Look for any rewrite where `basePath` is `false` and make sure its `destination` starts with `http://` or `https://`. ## Useful Links - [Rewrites section in Documentation](/docs/pages/api-reference/config/next-config-js/rewrites)