Skip to content

Commit

Permalink
feat(@galactiks/explorer): exclude page without path and index path
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Sep 26, 2023
1 parent ec4e35e commit 552a004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapters/astro/src/pages.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {

export async function getStaticPaths() {
return (await getPages({ inLanguages: getLanguages() }))
.filter((_p) => _p.slug !== '')
.filter((_p) => _p.path && _p.path !== '/')
.map((page) => ({
params: { path: page.path.slice(1) },
props: { page },
Expand Down

0 comments on commit 552a004

Please sign in to comment.