DestinyItemManager / dim-api

Destiny Item Manager API Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process.env?

akita-programs opened this issue · comments

commented

image

I'm confused to as why this is using process.env to load a .env file, it's purpose is not to load environment files, but to return the node environment of the process. Shouldn't you be using a package like dotenv?

This is used to read environment variables. dotenv is a separate thing that loads the contents of files into the environment. In this case, JWT_SECRET is provided through the process environment, populated by Kubernetes.