500 Internal Server Error when completing form to trigger a Resend email

For Workers & Pages, what is the name of the domain?

What is the error number?

500

What is the error message?

Internal Server Error

What is the issue or error you’re encountering

build logs show success, but the Real-time Logs for the function do not show any console.log output from within my src/pages/api/submit.js code, even for simple console.log statements at the very beginning of the POST handler

What steps have you taken to resolve the issue?

tried redeploying and troubleshooting with AI, not very experienced. sorry

What are the steps to reproduce the issue?

submit the form