adityanandanx/ecom

load environment variables through a config object

Open

#7 opened on Mar 26, 2024

 (0 comments) (0 reactions) (0 assignees)TypeScript (1 fork)auto 404
backendenhancementgood first issue

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

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.

Contributor guide