How to set a cookie using NextJS 13 API routes
Apr 8, 2023 · 1 min read · It seems that there is a correct sequence for creating a Response object with a set-cookie header and a JSON body in Next.js 13. I'm not sure if this is limited to the beta app directory version and typescript. Problem: typescript is confused? If you...
Join discussion




