Yes thats right that we store keys on server.
But what about the dotenv package we imported into file and written as process.end.VAR_NAME ? Wont it require to use dotenv package?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
dotenv
is a dev dependency. In production, keys are stored on the server which can be accessed by node without usingdotenv
can you give me little example how storing keys on production? thank you
For example, heroku has a option in app settings to enter environment variable.
yes, in heroku there is an option to store that. but how if we use own server?
Like this
ok, thank you.
But, still we're using 'process.env', which uses to 'dotenv' package in production?
In production I didn't use .env, I store all credentials on host environment or if I use docker, I store it in docker secrets.
Cool, thanks!
Yes thats right that we store
keys
on server.But what about the dotenv package we imported into file and written as
process.end.VAR_NAME
? Wont it require to usedotenv
package?