Edge API endpoints can't read the body in next start
and next dev
#37821
Labels
bug
Issue was opened via the bug report template.
next start
and next dev
#37821
Verify canary release
Provide environment information
What browser are you using? (if relevant)
How are you deploying your application? (if relevant)
Describe the Bug
With the runtime set to
edge
, it seems the requestbody
is always empty (e.g.POST
requests), or am I missing something?Originally posted by @zaiste in #37481 (comment)
Expected Behavior
await request.text()
if aPOST
request with a body occurredLink to reproduction
To Reproduce
Create a new
/api/edge.js
file with the content:next dev --port=1234
curl http://localhost:1234/api/edge -X POST -d 'hello world'
This will fail.
The text was updated successfully, but these errors were encountered: