Hi Im trying to send an email with Sendgrid on a form submision and im not making it trying to preview and test my email templates through Preview UI following the documentation (Netlify Email Integration | Netlify Docs) and I just get a dark screen with: Function not found… I dont know what I am doing wrong.
I have tried also making a subdirectory inside emails with the index.html inside it but I still have the same issue.
I would like to point out this part I realiced in the console when doing netlify build:
As I know this preview UI doesnt work in production, but in this case how could I change the build context in my local machine.
Im using Astro as the client framework, and Sendgrid integration for the emails.
I installed the last CLI version, then netlify build and then netlify dev. Then I try to access
Request from ::1: GET /.netlify/functions/emails
Response with status 404 in 1 ms.
11:02:53  /netlify/functions/emails
11:02:53  /netlify/functions/emails.html
11:02:53  /netlify/functions/emails.htm
11:02:53  /netlify/functions/emails/index.html
11:02:53  /netlify/functions/emails/index.htm