Hi folks!
I see that the context.cookies is an AstroCookies which has a .set() method. Using this in frontmatter in Astro files AstroCookies.set()works perfectly, but using it in the middleware via context.cookies.set() does not work and the cookies are not set.
What is the best method/practice to set a cookie in middleware right before calling next()?