Fetching and getting metadata for a lot of items, dynamic sitemap etc.
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Hi!
I'm just looking for some guidance, i cant really make up how to orchistrate this by reading the docs.
I have a database with a lot of products, lets say 800 different products. They have various properties as image, description etc etc.
I have a folder structure which looks like
I would optimally want to fetch the data itself when a product is visited through a server component, but i'd also like to attach the correct metadata for SEO purposes.
How would one handle this with 800 products which means 800 "separate" product pages (although its dynamically generated).
I would need a dynamically rendered sitemap. My mind is all over the place and i'd love the input from anyone knowledgeable â¤ï¸
I'm just looking for some guidance, i cant really make up how to orchistrate this by reading the docs.
I have a database with a lot of products, lets say 800 different products. They have various properties as image, description etc etc.
I have a folder structure which looks like
api/product/[id]/page.tsxI would optimally want to fetch the data itself when a product is visited through a server component, but i'd also like to attach the correct metadata for SEO purposes.
How would one handle this with 800 products which means 800 "separate" product pages (although its dynamically generated).
I would need a dynamically rendered sitemap. My mind is all over the place and i'd love the input from anyone knowledgeable â¤ï¸