adityanandanx/ecom

load environment variables through a config object

Aberta

#7 aberto em 26 de mar. de 2024

 (0 comentário) (0 reação) (0 responsável)TypeScript (1 fork)auto 404
backendenhancementgood first issue

Métricas do repositório

Stars
 (0 estrela)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I should be able to access typed environment variables by-

import config from "./config";

console.log(config.TEST_USER_TOKEN);

and it must raise appropriate errors if the env variable does not exist.

Guia do colaborador