I have a function that fires when a user adds an email address and hits ‘send’. It fires the email address to the lambda endpoint
https://******/.netlify/functions/login which takes the response body and passes the email address to an AWS SES email that gets sent to the email address in the response. The email contains a magic sign in link.
When I run the function locally it works perfectly but running it on build on the netlify server it doesn’t send the email the first time but the second time I send the request and from there on it’s all out of sync, so each email I get should have been the one before. I am not sure if this is a timing issue within Netlify.
Can anyone help?