Load worker secrets from Vault
Some checks failed
Build and deploy Worker / build (push) Failing after 23s

This commit is contained in:
Ruslan Bakiev
2026-05-08 16:57:41 +07:00
parent a6203bde71
commit b231eb6a27
4 changed files with 70 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
import 'dotenv/config';
import { loadVaultEnvironment } from './vault/env.js';
await loadVaultEnvironment();
export const config = {
databaseUrl: process.env.DATABASE_URL ?? '',
workerName: process.env.HATCHET_WORKER_NAME ?? 'mapflow-hatchet-worker',