Skip to content

fix(nextjs): Skip NextResponse normalization in mergeResponses if possible (#2244)#2260

Merged
LekoArts merged 1 commit into
release/v4from
backport-release/v4-2244
Dec 5, 2023
Merged

fix(nextjs): Skip NextResponse normalization in mergeResponses if possible (#2244)#2260
LekoArts merged 1 commit into
release/v4from
backport-release/v4-2244

Conversation

@clerk-cookie

Copy link
Copy Markdown
Collaborator

Backporting #2244 to the release/v4 branch

(cherry picked from commit b892ac6)

…sible (#2244)

* fix(nextjs): If res is NextResponse just return it

* fix(nextjs): Support options when setting cookies

* chore(repo): Add initial next middleware test

* chore(repo): Make test work

* chore(repo): Add changeset

* Update packages/nextjs/src/utils/response.test.ts

Co-authored-by: Tom Milewski <me@tm.codes>

---------

Co-authored-by: Tom Milewski <me@tm.codes>
(cherry picked from commit b892ac6)
@clerk-cookie clerk-cookie requested a review from a team as a code owner December 5, 2023 09:01
@changeset-bot

changeset-bot Bot commented Dec 5, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 33404c7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LekoArts LekoArts added this pull request to the merge queue Dec 5, 2023
Merged via the queue into release/v4 with commit fc43f12 Dec 5, 2023
@LekoArts LekoArts deleted the backport-release/v4-2244 branch December 5, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants