Skip to content

Commit

Permalink
Update docs for basePath: false rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 1, 2021
1 parent 16d464c commit a8c4783
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/api-reference/next.config.js/rewrites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
Expand Down

0 comments on commit a8c4783

Please sign in to comment.