config changes to make it not async
This commit is contained in:
parent
24680e403d
commit
92d4b90987
5 changed files with 131 additions and 13 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue