Skip to content

Commit

Permalink
update package json - added connection to local mungodb
Browse files Browse the repository at this point in the history
  • Loading branch information
raythompsonwebdev committed Mar 15, 2024
1 parent 75c761a commit 4fe73e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mongodb.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MongoClient } from 'mongodb'

if (!process.env.LOCAL_MONGODB_URI) {
if (!process.env.MONGODB_URI) {
throw new Error('Invalid/Missing environment variable: "MONGODBLOCAL_URI"')
}

const uri = process.env.LOCAL_MONGODB_URI
const uri = process.env.MONGODB_URI
const options = {}

let client
Expand Down

0 comments on commit 4fe73e7

Please sign in to comment.