Archived
fixed db name
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { NextApiRequest, NextApiResponse } from 'next';
|
import { NextApiRequest, NextApiResponse } from 'next';
|
||||||
import { MongoClient } from 'mongodb';
|
import { MongoClient } from 'mongodb';
|
||||||
|
|
||||||
const uri = process.env.MONGODB_URI || 'your-mongodb-uri'; // Replace with your MongoDB URI
|
const uri = process.env.MONGODB_URI || 'dontstealmyuri';
|
||||||
const dbName = 'your-database-name'; // Replace with your database name
|
const dbName = 'comments';
|
||||||
|
|
||||||
const client = new MongoClient(uri);
|
const client = new MongoClient(uri);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user