Add note about beforeFiles continuing (#27211)
This adds a note explaining that `beforeFiles` continue instead of checking the filesystem/dynamic routes immediately like they do in `afterFiles` and `fallback`. ## Documentation / Examples - [x] Make sure the linting passes Closes: https://github.com/vercel/next.js/issues/26795
This commit is contained in:
parent
057d338db4
commit
6e99f7af39
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ module.exports = {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: rewrites in `beforeFiles` do not check the filesystem/dynamic routes immediately after matching a source, they continue until all `beforeFiles` have been checked.
|
||||||
|
|
||||||
## Rewrite parameters
|
## Rewrite parameters
|
||||||
|
|
||||||
When using parameters in a rewrite the parameters will be passed in the query by default when none of the parameters are used in the `destination`.
|
When using parameters in a rewrite the parameters will be passed in the query by default when none of the parameters are used in the `destination`.
|
||||||
|
|
Loading…
Reference in a new issue