CF-Pages: NextJS environment values for AWS SES - 405 error

Has anyone encountered an issue when trying to connect AWS SES to the Cloudflare pages environment values? How would I go about making my form work? I am not 100% sure that this is an issue with the environment values or what’s the reason behind the 405 that I’m receiving.

Currently, I’m seeing a 405 error showing when the POST is trying to be submitted.

I’m not receiving anything from the Response.

I believe that AWS requires a process.env.____________ variable to be able to read it from the app.