adityanandanx/ecom

load environment variables through a config object

開放

#7 建立於 2024年3月26日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (1 個分叉)auto 404
backendenhancementgood first issue

倉庫指標

星標
 (0 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南