CLI to build and develop Next.js apps for Cloudflare Pages
### next-on-pages environment related information System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27 PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz Memory: 32 GB Shell: /bin/zsh Package Manager Used: pnpm (9.14.2) Relevant Packages: @cloudflare/next-on-pages: 1.13.7 vercel: N/A next: 15.0.3 ### Description Using @edge-csrf/nextjs in middleware produces the error: ``` TypeError: This ReadableStream is disturbed (has already been read from) and cannot be used as a body. ``` Presumably this is because @edge-csrf/nextjs the parses the request body but it's still unexpected because the library only uses edge API methods to parse the request: https://github.com/kubetail-org/edge-csrf/blob/main/shared/src/util.ts#L64-L122 I created a version of @edge-csrf/nextjs that clones the request before parsing it but I'm still getting the same error: https://github.com/kubetail-org/edge-csrf/blob/2.5.3-cloudflare/packages/nextjs/src/index.ts#L66 ### Reproduction This example project uses next@15 and @edge-csrf/[email protected]: https://github.com/kubetail-org/edge-csrf/tree/2.5.3-cloudflare/examples/next15-cloudflare-pages ### Pages Deployment Method Direct Upload (`wrangler pages publish` or the @cloudflare/pages-action GitHub Action) ### Pages Deployment ID _No response_ ### Additional Information _No response_ ### Would you like to help? - [ ] Would you like to help fixing this bug?
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by amorey and has received 0 comments.