mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(cli): resolve .env loading failure for global npm installations
This commit is contained in:
@@ -44,6 +44,7 @@ function loadEnvFile() {
|
||||
}
|
||||
|
||||
envPaths.push(join(process.cwd(), ".env"));
|
||||
envPaths.push(join(ROOT, ".env"));
|
||||
|
||||
for (const envPath of envPaths) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user