Dynamic routes
In this episode I'm going to show you how to create simple and then more advanced dynamic routes for your Next.js and Strapi application.
We are going to start by creating a simple dynamic route that is going to fetch our singular data by id
. After that I’m going to show you how you can fetch your data by using slug
instead of id
so that your singular data has pretty URLs. And lastly we are going to create a bit more complicated routes that is going to include categorisation of our routes.
As you will see this is all pretty easy to do with our Strapi, Next and React stack.