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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
setCookie
seems to work fine when used in a Nextjs api route, but in Next's latest released_middleware
file doesn't work.This can be reproduced my creating a
_middleware.ts
file with the followingHowever using the NextResponse
res.cookie("test", "test value")
works. Unfortunately that method it doesn't play well with Typescript for optionsThe text was updated successfully, but these errors were encountered: