silverwolf-x/project / errors /invalid-external-rewrite.mdx
silverwolf-x's picture
download
raw
582 Bytes
---
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)

Xet Storage Details

Size:
582 Bytes
·
Xet hash:
3cb0afe890e772f470a5a0789dcf0dc9d95049cb4bf0852f0253f3a09fa9c05f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.