skip to Main Content

Mongodb – connect mongoose in nextjs middleware

I'm trying to connect next.js app to mongodb via mongoose in _middeware file(./pages/_middleware.ts ) But I get this error on incoming requests: error - (middleware)node_modulesmongoosedistbrowser.umd.js (1242:0) @ ReferenceError: regeneratorRuntime is not defined How can I fix it?

VIEW QUESTION

my app routs me to a page, but i cant access it directly – Nginx

i have setup a link that routes me to an about page (about.js): import React,{useState,useEffect} from 'react'; import Link from 'next/link' ///------------------------PAGES-------------------------------/// import {default as Main} from '../app/sections/Main.js' export default function Home() { const [site, setSite] = useState('down'); const mainprops…

VIEW QUESTION
Back To Top
Search