Send email digests on cronjobs for emails that failed to send
[!IMPORTANT] Add cron job and route handler to send email digests for failed emails to project owners.
- Cron Job:
- Adds a cron job in
vercel.jsonto trigger/api/latest/cron/send-email-digestdaily.- Route Handler:
- New route handler
GETinroute.tsto send email digests of failed emails to project owners.- Validates requests using
CRON_SECRETfrom environment variables.- Fetches failed emails from the last 24 hours and groups them by project.
- Sends email digests to primary contact channels of project users.
- Email Configuration:
- Exports
getEmailConfiginemails.tsxfor use in the new route handler.- Testing:
- Adds tests in
email-digest.test.tsto verify email digest sending behavior for failed and non-failed emails.This description was created by
for a5cbd6f7193352df324cbcc26352408830fca954. It will automatically update as commits are pushed.
Deployment failed with the following error:
The `vercel.json` schema validation failed with the following message: `crons` should be array
Learn More: https://vercel.com/docs/concepts/projects/project-configuration
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| stack-backend | ❌ Failed (Inspect) | Jun 12, 2025 0:20am | ||
| stack-dashboard | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 12, 2025 0:20am |
| stack-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 12, 2025 0:20am |
😱 Found 5 issues. Time to roll up your sleeves! 😱
Deployment failed with the following error:
The `vercel.json` schema validation failed with the following message: `crons[0]` missing required property `schedule`
Learn More: https://vercel.com/docs/concepts/projects/project-configuration
@TheCactusBlue this one's also still waiting for you
Some new issue(s) might be present. Please use the following link(s) to view them:
https://zeropath.com/app/issues/8ad955ea-c75a-499e-9c2b-9e97440ff3f0
Reply to this PR with @zeropath-ai followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.
Some new issue(s) might be present. Please use the following link(s) to view them:
https://zeropath.com/app/issues/1b8136ed-71aa-4081-b66d-cfb015911e0d
Reply to this PR with @zeropath-ai followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.