Yo, I just joined because I need to decide between workers and functions. functions seems more easy, less boiler plate. Its a gpt app with just 2-3 endpoints.
Incoming HTTP requests to a Worker are passed to the fetch() handler as a request object. To respond to the request with a response, return a Response …
doesn't look like it, no, you don't get passed context, maybe some way to hack it but I'm not too familiar with Pages Plugins, but it lets you return either a Response or a Promise<Response>. If you're doing anything like submitting the data, you should really await it so the user knows the form request really did go through
Anyone know why I'm getting 512 "Could not send your email." with the Mailchannels plugin? I believe I have my DNS record setup properly for the lockdown thing, it points to the subdomain in the "Pages & Workers Overview" on the right
You might want to reconsider mailchannels: workers-and-pages-discussions Regardless, it needs to be your pages.dev (even if using a custom domain, has to be the pages.dev of your project), it corresponds with the cf-worker header. ex: cfid=myproject.pages.dev