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 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*/ 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) { 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) { 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 }) => (