Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fallback for NextResponse #122

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

PaulAsjes
Copy link
Contributor

@PaulAsjes PaulAsjes commented Oct 28, 2024

NextResponse isn't always available in context in Next 13. This adds a fallback to using regular Response in those cases.

Tested in Next 13, 14 and 15.

@awolfden awolfden merged commit 61e0b0d into main Oct 28, 2024
@awolfden awolfden deleted the pma/next-13-response-compatibility branch October 28, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants