I'm currently migrating my app to work with edge worked fine so far until i tried to return json to the frontend, then the frontend was complaining with
SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
I just followed the examples from nextjs guide (pages router in particular), but it seems this isn't the right way to send json to the frontend, how should i do it?