In this episode we are going to create a product display page for our shop.
The goal for this episode would be to create a single product page for our products, so that when the user clicks on a product in our Next.js app it would take him to the product display page. To get the correct page, I'm going to show you how to filter products by slug from our Directus API.
Also we are going to refactor our query methods a bit, so that we end up with only one method for all of our queries, which will make our code look much nicer and more performant.
Code used in this tutorial
https://bit.ly/3HZYOG9
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: https://github.com/ivandoric
Twitter: / ivan_doric
Instagram: / watchlearntuts
Facebook: / watchlearntutorials