adityanandanx/ecom

load environment variables through a config object

Aperta

#7 aperta il 26 mar 2024

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (1 fork)auto 404
backendenhancementgood first issue

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor