Dont build pages starting with _

This commit is contained in:
Marcus Blättermann 2022-12-15 01:29:49 +01:00
parent a402fa7970
commit 6cc1e4a2b3
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -59,7 +59,7 @@ export const getStaticPaths: GetStaticPaths<ParsedUrlQuery> = async () => {
if (dirent.isDirectory()) {
return loadFolder([...pathBase, dirent.name])
}
if (!dirent.name.includes('.mdx')) {
if (!dirent.name.includes('.mdx') || dirent.name[0] === '_') {
return []
}