Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

feat: add wrangler.toml with cron triggers for scheduled publishing and token refresh

valzor0a79ec05a931
diff --git a/backend/wrangler.toml b/backend/wrangler.toml
new file mode 100644
index 0000000..a10fce2
--- /dev/null
+++ b/backend/wrangler.toml
@@ -0,0 +1,9 @@
+name = "twiligent"
+main = "server.js"
+compatibility_date = "2024-09-23"
+
+# Two cron triggers:
+# 1. Every 15 minutes — publish due scheduled posts
+# 2. Daily at midnight — auto-refresh expiring Instagram tokens
+[triggers]
+crons = ["*/15 * * * *", "0 0 * * *"]