I want adjustment my stripe-webook to Ede API Routes? I readed several sources and official documentation: https://nextjs.org/blog/next-12-2#edge-api-routes-experimental
My code: https://pastebin.com/vUNdNrjB
I should replace all res to code like this?
return new Response(
JSON.stringify(data, null, 2),
{
headers: {
'content-type': 'application/json;charset=UTF-8',
}
}
)