From fad325609115108575ab52daee2757dc3b44ceb6 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 1 Jan 2021 11:40:25 -0600 Subject: [PATCH] Update docs for `basePath: false` rewrite (#20663) --- docs/api-reference/next.config.js/rewrites.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api-reference/next.config.js/rewrites.md b/docs/api-reference/next.config.js/rewrites.md index 28c0401789..c32a370edd 100644 --- a/docs/api-reference/next.config.js/rewrites.md +++ b/docs/api-reference/next.config.js/rewrites.md @@ -154,9 +154,10 @@ module.exports = { destination: '/another', // automatically becomes /docs/another }, { - // does not add /docs since basePath: false is set + // does not add /docs to /without-basePath since basePath: false is set + // Note: this can not be used for internal rewrites e.g. `destination: '/another'` source: '/without-basePath', - destination: '/another', + destination: 'https://example.com', basePath: false, }, ] -- GitLab