From ba1d9b6ec36de73c2cca9fbd00a1fb43e1ad83b3 Mon Sep 17 00:00:00 2001 From: Aryan Beezadhur <34424160+AryanBeezadhur@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:44:05 +0100 Subject: [PATCH 1/5] Rename examples/with-mongodb-mongoose/utils/dbConnect.js to examples/with-mongodb-mongoose/lib/dbConnect.js --- examples/with-mongodb-mongoose/{utils => lib}/dbConnect.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/with-mongodb-mongoose/{utils => lib}/dbConnect.js (100%) diff --git a/examples/with-mongodb-mongoose/utils/dbConnect.js b/examples/with-mongodb-mongoose/lib/dbConnect.js similarity index 100% rename from examples/with-mongodb-mongoose/utils/dbConnect.js rename to examples/with-mongodb-mongoose/lib/dbConnect.js From 4b60ad2a79cf0461da0311fd7f4d443b435ac4f1 Mon Sep 17 00:00:00 2001 From: Aryan Beezadhur <34424160+AryanBeezadhur@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:46:32 +0100 Subject: [PATCH 2/5] Rename `utils` to `lib` --- examples/with-mongodb-mongoose/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mongodb-mongoose/pages/index.js b/examples/with-mongodb-mongoose/pages/index.js index 280d4bed9d8ce..a4e3e1d99c16f 100644 --- a/examples/with-mongodb-mongoose/pages/index.js +++ b/examples/with-mongodb-mongoose/pages/index.js @@ -1,5 +1,5 @@ import Link from 'next/link' -import dbConnect from '../utils/dbConnect' +import dbConnect from '../lib/dbConnect' import Pet from '../models/Pet' const Index = ({ pets }) => ( From 963a6209e37165a470f983cb13bd1cd5b012ce75 Mon Sep 17 00:00:00 2001 From: Aryan Beezadhur <34424160+AryanBeezadhur@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:47:03 +0100 Subject: [PATCH 3/5] Rename `utils` to `lib` --- examples/with-mongodb-mongoose/pages/api/pets/[id].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mongodb-mongoose/pages/api/pets/[id].js b/examples/with-mongodb-mongoose/pages/api/pets/[id].js index 5aad5b92b0f66..769dd47d4d2a7 100644 --- a/examples/with-mongodb-mongoose/pages/api/pets/[id].js +++ b/examples/with-mongodb-mongoose/pages/api/pets/[id].js @@ -1,4 +1,4 @@ -import dbConnect from '../../../utils/dbConnect' +import dbConnect from '../../../lib/dbConnect' import Pet from '../../../models/Pet' export default async function handler(req, res) { From 8c618cf1d6339ff349a72be8f4f96f68998dc9f2 Mon Sep 17 00:00:00 2001 From: Aryan Beezadhur <34424160+AryanBeezadhur@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:47:23 +0100 Subject: [PATCH 4/5] Rename `utils` to `lib` --- examples/with-mongodb-mongoose/pages/api/pets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mongodb-mongoose/pages/api/pets/index.js b/examples/with-mongodb-mongoose/pages/api/pets/index.js index 9043cc350570e..59911be0e73ed 100644 --- a/examples/with-mongodb-mongoose/pages/api/pets/index.js +++ b/examples/with-mongodb-mongoose/pages/api/pets/index.js @@ -1,4 +1,4 @@ -import dbConnect from '../../../utils/dbConnect' +import dbConnect from '../../../lib/dbConnect' import Pet from '../../../models/Pet' export default async function handler(req, res) { From ec30240723a8b5c586e48d0eafe65145e16943e6 Mon Sep 17 00:00:00 2001 From: Aryan Beezadhur <34424160+AryanBeezadhur@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:47:39 +0100 Subject: [PATCH 5/5] Rename `utils` to `lib` --- examples/with-mongodb-mongoose/pages/[id]/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mongodb-mongoose/pages/[id]/index.js b/examples/with-mongodb-mongoose/pages/[id]/index.js index 5d0e676b4bd9d..c455463129cb6 100644 --- a/examples/with-mongodb-mongoose/pages/[id]/index.js +++ b/examples/with-mongodb-mongoose/pages/[id]/index.js @@ -1,7 +1,7 @@ import { useState } from 'react' import { useRouter } from 'next/router' import Link from 'next/link' -import dbConnect from '../../utils/dbConnect' +import dbConnect from '../../lib/dbConnect' import Pet from '../../models/Pet' /* Allows you to view pet card info and delete pet card*/