Closed hannahcmtucker closed 6 years ago
in db_connection.js you set DB_URL up as a variable:
db_connection.js
DB_URL
let DB_URL = process.env.DB_URL;
but then in the rest of the file you refer back to process.env.DB_URL:
process.env.DB_URL
if (!process.env.DB_URL) throw new Error("Environment variable DB_URL must be set"); const params = url.parse(process.env.DB_URL);
Would be better to refer to the variable 😀
in
db_connection.js
you setDB_URL
up as a variable:but then in the rest of the file you refer back to
process.env.DB_URL
:Would be better to refer to the variable 😀