Await your Promises

After years of reviewing codebases and debugging mysterious production issues at Cloudflare, I&rsquo;ve become somewhat of a Promise detective. One pattern I&rsquo;ve seen repeatedly causing headaches is improper Promise handling. It&rsquo;s 2 AM, and I&rsquo;m staring at logs from a serverless function that mysteriously failed in production - all because someone forgot to await a Promise. Again.…