This project is a Cloudflare Worker that processes emails and forwards them to a support center.
Medium post: here
-
Clone the repository:
git clone https://github.com/adarmanto/cloudflare-email-worker-example.git cd cloudflare-email-worker-example -
Install dependencies:
npm install
-
Configure your Cloudflare Worker by editing the
wrangler.jsoncfile with your Cloudflare account details. -
Ensure you have the necessary environment variables set up in your Cloudflare Worker settings.
Run the tests using Vitest:
npm run testDeploy the Cloudflare Worker using Wrangler:
npm run deploy