From 5f4abe40ef5ff7bb88663be8974971e0fb783ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Thu, 15 Dec 2022 01:29:49 +0100 Subject: [PATCH] Dont build pages starting with `_` --- website/pages/[...listPathPage].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/[...listPathPage].tsx b/website/pages/[...listPathPage].tsx index 41fe42458..b65073f55 100644 --- a/website/pages/[...listPathPage].tsx +++ b/website/pages/[...listPathPage].tsx @@ -58,7 +58,7 @@ export const getStaticPaths: GetStaticPaths = async () => { if (dirent.isDirectory()) { return loadFolder([...pathBase, dirent.name]) } - if (!dirent.name.includes('.mdx')) { + if (!dirent.name.includes('.mdx') || dirent.name[0] === '_') { return [] }