502 Error After Deploying Edge Functions to Block Bots in Next.js on Netlify

We are having an issue configuring edge functions in our Next.js project to block bots that are consuming many of our functions. This is our netlify.toml file — the build completes successfully, but we get a 502 error. I don’t understand why.

Our site ID is: 87b14273-bcd5-4b0e-9f40-922487949deb.

@dpdeployapp Check your Function logs:
https://docs.netlify.com/functions/logs/

They should provide more detail regarding the error.