generateStaticParams export từ dynamic route page để pre-generate static paths tại build time, tương đương getStaticPaths trong Pages Router. export async function generateStaticParams() { return posts.map(p => ({ slug: p.slug })) }.
Kết hợp với Static Generation để tạo static pages cho mọi possible value.
generateStaticParams is exported from a dynamic route page to pre-generate static paths at build time, equivalent to getStaticPaths in the Pages Router. export async function generateStaticParams() { return posts.map(p => ({ slug: p.slug })) }.
Combined with Static Generation, it creates static pages for every possible parameter value.