adityanandanx/ecom

load environment variables through a config object

オープン

#7 opened on 2024/03/26

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (1 件のフォーク)auto 404
backendenhancementgood first issue

Repository metrics

Stars
 (0 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド