Category "dynamic-routing"

Redirect 404 to homepage in Nextjs with dynamic routes

I am trying to redirect 404 pages to the homepage in Nextjs, but because of a rule in the next.config.js it does not work. Every other 404 redirects to homepage

Next.js nested dynamic folder routing

Update: Which it causing this error because of [category_slug]-index.js that getServerSideProps? I tried to do index.js under product folder, it works, mean it

Return two values from getStaticPaths

I'm using getStaticPaths to create a product page within NextJS. I get my products from wooCommerce, problem is: I want to use "permalink" for my NextJS route U