#Database configuration help

3 messages · Page 1 of 1 (latest)

versed ice
#

you need to use environment variables if you have any sort of connection strings or other data to connect to the databse that you wouldnt want exposed to the public

#

The chatgpt one has it correctly. You store all the sensative data (DB_URI, DB_HOST, PORT, CONNECTION_STRING) or other such related info in a .env file. Once you push to production or commit your projrct to a github repository, the .env file wont be included or accessible to anyone viewing your code, protecting your sensative data

#

Does that answer your questions? If not, feel free to ask for more info