Environment
"@orpc/client": "^1.8.9",
"@orpc/server": "^1.8.9",
"nuxt": "^4.1.1",
Reproduction
https://github.com/Prains/orpc-nuxt-bun-reproduction
- bun i
- bun dev
- open page, everything working correctly
- bun i
- bun run build
- bun run .output/server/index.mjs
- open page, requests return 400 with Malformed request. Ensure the request body is properly formatted and the 'Content-Type' header is set correctly.
Describe the bug
Hey!
When building nuxt project with nitro preset = bun server return 400 on all requests.
After further investigation i figured out that it happens because body of request returns in Unit8 byte instead of parsed body
it is not quite described in nuxt adapter, so im in loss here. is there any options to solve this without any workarouns?
also please add battle pass, awesome library
Additional context
No response
Logs
Environment
Reproduction
https://github.com/Prains/orpc-nuxt-bun-reproduction
Describe the bug
Hey!
When building nuxt project with nitro preset = bun server return 400 on all requests.
After further investigation i figured out that it happens because body of request returns in Unit8 byte instead of parsed body
it is not quite described in nuxt adapter, so im in loss here. is there any options to solve this without any workarouns?
also please add battle pass, awesome library
Additional context
No response
Logs