@@ -4,6 +4,7 @@ import { NextResponse } from "next/server";
export async function GET(request) {
await dbConnect();
+ console.log("Database connected, starting query");
try {
const { searchParams } = new URL(request.url);
@@ -10,6 +10,8 @@ if (!MONGODB_URI) {
);
}
+console.log("Database connected, starting query 111");
+
let cached = global.mongoose;
if (!cached) {