Skip to content

Commit

Permalink
docs: add headers and cookies priority
Browse files Browse the repository at this point in the history
  • Loading branch information
sommeeeer committed Sep 17, 2024
1 parent 44adea2 commit be25663
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/pages/config/full_example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ const config = {
// This will disable the incremental cache
// This is generally not recommended, as this is necessary for ISR AND SSG routes as well as the fetch cache
disableIncrementalCache: true,
// By default, the middleware headers and cookies will override the handler headers and cookies.
// This is executed for every request and after next config headers and middleware has been executed
// It can either be middleware or handler
headersAndCookiesPriority: "middleware"
}

//The path to the target folder of build output from the `buildCommand` option (the path which will contain the `.next` and `.open-next` folders). This path is relative from the current process.cwd() - Optional default to "."
Expand Down

0 comments on commit be25663

Please sign in to comment.