Skip to content

Commit

Permalink
fix(core): respect user provided env vars over those from .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Feb 10, 2024
1 parent 9867187 commit e25ca11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils/ConfigurationLoader.ts
Expand Up @@ -167,7 +167,7 @@ export class ConfigurationLoader {
// only propagate known env vars
for (const key of Object.keys(env)) {
if (key.startsWith('MIKRO_ORM_')) {
process.env[key] = env[key];
process.env[key] ??= env[key]; // respect user provided values
}
}
}
Expand Down

0 comments on commit e25ca11

Please sign in to comment.