prerender-spa-plugin icon indicating copy to clipboard operation
prerender-spa-plugin copied to clipboard

How to render dynamic routes?

Open vitorhugosg opened this issue 4 years ago • 2 comments

Hello, how are you?

I have a marketplace project, I would like to know if I can render the dynamic routes of the products, would anyone know if I can do this?

Thanks in advance.

  • [ ]

vitorhugosg avatar Oct 28 '20 13:10 vitorhugosg

Yes, you can. But you need to know the routes in advance since the routes options only accepts an Array. It really depends on where you store the route information. Are the product ids stored in a database? How do you fetch them?

valentinoli avatar Nov 06 '20 10:11 valentinoli

@valentinoli can you show me way to make a dynamic route for item in marketplace?

tranduybau avatar Apr 18 '22 04:04 tranduybau