chore: basic 从pipeline中移除

This commit is contained in:
xiaojunnuo
2024-11-04 15:14:56 +08:00
parent 0f572f4cb3
commit 1274f56da8
38 changed files with 128 additions and 58 deletions
@@ -46,3 +46,14 @@ export function mergeConfig(config: any, envType: string) {
}
return config;
}
export function loadDotEnv() {
const envStr = fs.readFileSync('.env').toString();
envStr.split('\n').forEach(line => {
const [key, value] = line.split('=');
const oldValue = process.env[key];
if (!oldValue) {
process.env[key] = value;
}
});
}