Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function loadEnv() {
const basePath = join(process.cwd(), '.env');
const localPath = `${basePath}.local`;
loadDotEnv(localPath);
loadDotEnv(basePath);
}
loadEnv() {
const basePath = join(this.cwd, '.env');
const localPath = `${basePath}.local`;
loadDotEnv(basePath);
loadDotEnv(localPath);
}
loadEnv() {
const basePath = join(this.cwd, '.env');
const localPath = `${basePath}.local`;
loadDotEnv(basePath);
loadDotEnv(localPath);
}
function loadEnv() {
const basePath = join(process.cwd(), '.env');
const localPath = `${basePath}.local`;
loadDotEnv(localPath);
loadDotEnv(basePath);
}