Skip to content

Commit dab4a6f

Browse files
authored
docs: add execution order limitation to Netlify docs (#40)
1 parent af52ef0 commit dab4a6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pages/netlify/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Currently, Netlify's Next.js adapter has the following limitations:
6969

7070
- **Rewrites in your Next.js configuration can’t point to static files in the `public` directory.** If you create `beforeFiles` rewrites in your `next.config.js`, they can’t point to static files in your site’s `public` directory. You can use middleware rewrites as an alternative.
7171

72+
- **Headers and Redirects are evaluated after middleware.** If you need to maintain the execution order specified in the Next.js [docs](https://nextjs.org/docs/app/building-your-application/routing/middleware#matching-paths) you will need to configure your [headers](https://docs.netlify.com/routing/headers/) and [redirects](https://docs.netlify.com/routing/redirects/) outside of Next.js using our platform primitives.
73+
7274
- **Netlify Forms compatibility:** Using Netlify Forms with the current adapter [requires a workaround](/netlify/forms).
7375

7476
### pnpm support

0 commit comments

Comments
 (0)