Mongodb – Next.js dynamic route parameter undefined
I'm making an e-commerce next.js app with Typescript and MongoDB. This is my current file structure I will be referring to: My mainPage.tsx file renders all of my products in cards. Using products.map and Link, I am linking each product…