You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/redirects-rewrites.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ Every site on Netlify supports [redirects and rewrites](https://docs.netlify.com
8
8
Rewrites and redirects are applied in the following order:
9
9
10
10
1. Redirects and rewrites in the `_redirects` file. These are read in order until a match is found, and then processing stops.
11
-
2. Redirects and rewrites in the `netlify.toml` file. These are read in order until a match is found, and then processing stops.
12
-
3.Auto-generated redirects and rewrites. These are generated by the plugin are required for the site to function.
13
-
4. Next.jsredirects and rewrites. These are defined in the `next.config.js` file, and are applied after all others have been processed.
11
+
2. Redirects and rewrites in the `netlify.toml` file. None of these are read if one previous rules has already matched.
12
+
3.At this point, if the request targets a static file then it will be returned, without the Next.js redirects or rewrites being evaluated.
13
+
4.Any request that does not target a static file will then be passed to Next.js, which will then evaluate redirects and rewrites. These are defined in the `next.config.js` file.
0 commit comments