A dynamic segment is a folder whose name is in square brackets, like [slug], which matches a variable part of the URL. The values are passed to the page via params. With generateStaticParams, you can pre-generate the known pages at build time.
Example
app/produits/[id]/page.tsx matches /produits/42