Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-13 19:58:52 +08:00
parent 9018d6d158
commit 2e9c2ad43f
23 changed files with 954 additions and 287 deletions
+6
View File
@@ -19,6 +19,12 @@
***********************************************************************************************************************************************************************/
require('dotenv').config();
// Local-dev-only: stop the process on wake from laptop sleep/idle instead of
// letting node-cron dump a "missed execution" warning per elapsed tick. Must
// start ticking as early as possible so it wins the race against node-cron's
// own heartbeat once cron jobs are registered below. No-ops in production.
require('./utils/suspendGuard.util').startSuspendGuard();
// Force IPv4-only outbound connections. Hosts that resolve AAAA records but
// have no working IPv6 route (e.g. to Google's OAuth endpoints) hit ENETUNREACH
// on the v6 attempt — and Node's dual-stack "Happy Eyeballs" connector