When I am creating a product page, the page that is returned is a 404 page not found error. How do I fix this? This is in reference to the
Nextjs ECommerce Tutorial For Beginners 2022 [Next.js, MongoDB & Tailwind]
jay Answered question October 23, 2022
hello there,
404 error comes from here:
https://github.com/basir/next-tailwind-amazona/blob/main/pages/product/%5Bslug%5D.js#L16
if the product slug does not exist you get this error.
check the db to see if you have product with that slug.
also share the screenshot of the 404 error please.
jay Unselected an answer October 23, 2022