Skip to content

Commit

Permalink
migrated to mongodb atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccormack committed Nov 29, 2020
1 parent 96024db commit c5a99d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ require("dotenv").config({path: path.resolve(__dirname, ".env"),})

const { dbuser, dbpw, dbhost, dbname, } = process.env
module.exports = {
url: `mongodb://${dbhost}/${dbname}`,
url: `mongodb+srv://${dbhost}/${dbname}`,
db: dbname,
options: {
user: dbuser,
pass: dbpw,
useUnifiedTopology: true,
useNewUrlParser: true,
},
}

0 comments on commit c5a99d4

Please sign in to comment.