Dont build pages starting with _

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

View File

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