We’d like to create a product page, using Builder. Basically, the URL for all products suppose to be like
Building components are clear, and adding them to Builder is also clear, as well as creating pages out of components.
The next thing we need to do is to load data and pass it to our components.
Two questions from here:
- What is the best way to load data in our NextJS application and pass it to Builder (
export const getStaticPaths: GetStaticPaths = builderIoPaths('product', true)) ?
- Can we use different templates depending on the data that was loaded (we want to have different styles for different groups of products, yet keeping the same URL structure) ?