MailChannels Pages Plugin Issue with Next.JS 14

I've got a CloudFlare Pages project up, and I've set up all of my DNS records in Cloudflare for the Domain Lockdown, SPF, and DKIM according to the documentation: https://developers.cloudflare.com/pages/functions/plugins/mailchannels/ I've got my /functions/_middleware.ts file copied and pasted from the documentation's personalization example and hardcoded the emails, and I've added the data-static-form-name attribute to my form. When I submit the form and check the logs, I only see get requests with 200 response codes, but I don't see any post request and I don't receive an email. Has anyone else run into this?
Cloudflare Docs
MailChannels · Cloudflare Pages docs
The MailChannels Pages Plugin intercepts all form submissions made which have the data-static-form-name attribute set. Then, it emails these form …
1 Reply
peepo
peepoOP7mo ago
Still running into issues, but I found the first part of my problem was that I had to move my middleware from /functions/_middleware.ts to /src/middleware.ts.
Want results from more Discord servers?
Add your server