(clientEnv: ClientEnv = env)
| 51 | * Uses the clientEnv to determine the environment suffix. |
| 52 | */ |
| 53 | export const getConfigDir = (clientEnv: ClientEnv = env): string => { |
| 54 | const envSuffix = |
| 55 | clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT && |
| 56 | clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT !== 'prod' |
| 57 | ? `-${clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT}` |
| 58 | : '' |
| 59 | return path.join(os.homedir(), '.config', `manicode${envSuffix}`) |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Get the credentials file path based on the environment. |
no outgoing calls
no test coverage detected