Environment
Nitro: v1.0.0
Node: v16.18.1
Reproduction
repo: https://github.com/DanSnow/nitro-bug
Cloudflare Page: https://nitro-bug.pages.dev
- create an API event handler
- use POST request to the event handler
- will get
405 method not allow error
Describe the bug
I think it's because here only test 404 error, but Cloudflare will respond 405 if the method is not GET here
https://github.com/unjs/nitro/blob/main/src/runtime/entries/cloudflare-pages.ts#L25
Additional context
No response
Logs
No response
Environment
Nitro: v1.0.0
Node: v16.18.1
Reproduction
repo: https://github.com/DanSnow/nitro-bug
Cloudflare Page: https://nitro-bug.pages.dev
405 method not allowerrorDescribe the bug
I think it's because here only test 404 error, but Cloudflare will respond 405 if the method is not GET here
https://github.com/unjs/nitro/blob/main/src/runtime/entries/cloudflare-pages.ts#L25
Additional context
No response
Logs
No response