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:
JJ Kasper 2021-07-16 11:13:40 -05:00 committed by GitHub
parent 057d338db4
commit 6e99f7af39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.