Hello, I'm building an Astro test site and I would like to have everything "running" on Cloudflare. One of the things I want to demo is a simple form protected by Turnstile.
I have no issue with the front-end code which is working fine. When I click on "submit" I'm calling xxx/api/submit, on my project I have a TS script in root/functions/api/submit.ts.
I have no error when I'm comitting my code, the functions folder is detected by Pages, but while I'm doing my test and clicking on "submit" on my form I always have a 405 error.
I noticed in pages/functions real-time log that I have a double '/' in the path ... that could explain the 405, but on the browser side I don't have the double '/' (see screenshot attached)
Any help or ideas will be helpful ! Thanks !