mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
0b35ddd825
This PR: - Moves `next.config.js` options under a "config" folder which includes references for other configuration such as the ESLint plugin. I figure it would be tidier than having "Next.config.js Options" and "Config" in the API reference. - Fixes the issue with the "config" folder not showing up in canary: https://linear.app/vercel/issue/DOC-3749/bug-figure-out-why-new-config-folder-isnt-showing-up-in-the-canary - Fixes the indentation issues and missing example header (caused by an invisible character). Redirects: https://github.com/vercel/front/pull/38704
16 lines
582 B
Plaintext
16 lines
582 B
Plaintext
---
|
|
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)
|