MCPcopy Create free account
hub / github.com/Cv-Keep/cvkeep-backend / getEnvPath

Function getEnvPath

config/envUtils.js:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 },
15
16 getEnvPath() {
17 const useDotLocal = !stage && fs.existsSync(path.resolve(__dirname, '..', `.env.local`));
18 const envFileName = useDotLocal ? '.env.local' : `.env${ stage ? '.' + stage : '' }`;
19
20 return path.resolve(__dirname, '..', envFileName);
21 },
22
23 getEnvContent(envPath) {
24 return fs.existsSync(envPath) ? fs.readFileSync(envPath, 'utf-8') : '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected