config changes to make it not async

This commit is contained in:
Boki 2025-06-20 20:05:05 -04:00
parent 24680e403d
commit 92d4b90987
5 changed files with 131 additions and 13 deletions

View file

@ -26,6 +26,10 @@ export class EnvLoader implements ConfigLoader {
}
async load(): Promise<Record<string, unknown>> {
return this.loadSync();
}
loadSync(): Record<string, unknown> {
try {
// Load root .env file - try multiple possible locations
const possiblePaths = ['./.env', '../.env', '../../.env'];