()
| 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') : ''; |
nothing calls this directly
no outgoing calls
no test coverage detected