mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user