FEAT: new Customer Get Token Route

This commit is contained in:
Gabriel Amorim
2023-05-16 09:05:05 -03:00
parent 950c6414b6
commit aabd741cad
8 changed files with 202 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
const availableLocalEnvs: Array<typeof process.env.ENV> = ['stg', 'test'];
export default function getEnv(): typeof process.env.ENV {
if (process.env.ENV === 'local') {
if (availableLocalEnvs.includes(process.env.LOCAL_ENV))
return process.env.LOCAL_ENV;
return 'stg';
}
return process.env.ENV;
}