dahliaforeveryday code then porradacodethenporrada.hashnode.dev·Apr 8, 2023How to set a cookie using NextJS 13 API routesIt 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...13 likes·12.0K readsNext.jsAdd a thoughtful commentNo comments yetBe the first to start the conversation.