fix: load API keys from .env at runtime — never embed credentials in cron payloads or source code

This commit is contained in:
2026-03-06 02:04:55 +00:00
parent 0d3ef7c285
commit 261f5800ad
5 changed files with 50 additions and 5 deletions

View File

@@ -4,6 +4,10 @@
* Searches LinkedIn + Wellfound and populates the jobs queue
* Run via cron or manually: node job_searcher.mjs
*/
import { loadEnv } from './lib/env.mjs';
loadEnv(); // load .env before anything else
/**
*/
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';