First Commit. Duplicate bunext-sqlite preset

This commit is contained in:
2026-10-18 16:47:11 +01:00
commit 81e4a8aecc
718 changed files with 41695 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import bunext from "@moduletrace/bunext";
import cronHeartbeat from "./heartbeat";
import registerCronJob from "./register-cron-job";
export default function cron() {
if (process.env.NODE_ENV == "production" && !process.env.MAIN_SERVER) {
return;
}
bunext.bunextLog.watch(`Running Cron Services ...`);
registerCronJob({
title: "heartbeat",
schedule: "@hourly",
task: cronHeartbeat,
run_on_start: true,
});
}