Skip to content

Commit f510035

Browse files
committed
fix / 404
1 parent 34ba0da commit f510035

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/app/(frontend)/[slug]/page.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ export async function generateStaticParams() {
2525
},
2626
})
2727

28-
const params = pages.docs
29-
?.filter((doc) => {
30-
return doc.slug !== 'home'
31-
})
32-
.map(({ slug }) => {
33-
return { slug }
34-
})
28+
const params = pages.docs.map(({ slug }) => {
29+
return { slug }
30+
})
3531

3632
return params
3733
}

0 commit comments

Comments
 (0)