Skip to content

Commit eee7988

Browse files
committed
feat: configure Vercel Cron for 30-minute polling interval and update default poll duration
1 parent 6cc383f commit eee7988

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212
GITHUB_USERNAME,
1313
RESEND_API_KEY,
1414
NOTIFY_EMAIL,
15-
POLL_INTERVAL_MS = "120000",
15+
POLL_INTERVAL_MS = "1800000",
1616
} = process.env;
1717

1818
if (!GITHUB_USERNAME || !RESEND_API_KEY || !NOTIFY_EMAIL) {

vercel.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": 2,
3+
"rewrites": [
4+
{
5+
"source": "/(.*)",
6+
"destination": "/tracker.js"
7+
}
8+
],
9+
"crons": [
10+
{
11+
"path": "/trigger-poll",
12+
"schedule": "*/30 * * * *"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)