Dynamic Routes and generateStaticParams in Next.js
Dynamic routes let one file serve many URLs, such as every blog post or product. With generateStaticParams you can pre-render the popular ones at build time. Segment types [slug] - one segment: /blog/hello . [...slug] - catch-all: /docs/a/b/c gives ['a','b','c...