getStaticPaths logic updated

This commit is contained in:
Antonello Zanini
2022-11-18 17:26:49 +01:00
parent 9ca399b85d
commit 7e99eec396

View File

@@ -69,7 +69,7 @@ export async function getStaticPaths() {
) )
// creating a path for each of the `slug` parameter // creating a path for each of the `slug` parameter
const paths = blogSlugs.map(slug => `/blog/${slug}`) const paths = blogSlugs.map(slug => { return { params: { slug: slug} } })
return { return {
paths, paths,