use atlas integration env var

This commit is contained in:
Thomas Ruoff
2022-06-21 22:07:43 +02:00
parent 8a670f06ca
commit ce01da812d
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import EmailProvider from 'next-auth/providers/email'
import GitHubProvider from 'next-auth/providers/github'
import { MongoDBAdapter } from '@next-auth/mongodb-adapter'
import { MONGO_URI } from '../../../db'
import { MONGODB_URI } from '../../../db'
import { MongoClient } from 'mongodb'
let client: MongoClient
@@ -14,7 +14,7 @@ const GITHUB_USERS_GRANTED = ['111471']
async function getMongoClient() {
if (!client) {
client = new MongoClient(MONGO_URI)
client = new MongoClient(MONGODB_URI)
await client.connect()
}