From ed3a26cd6df70a710e9259bbf39a8b650f93513f Mon Sep 17 00:00:00 2001 From: Luccas Mateus de Medeiros Gomes Date: Mon, 1 May 2023 21:40:46 -0300 Subject: [PATCH] [alan-turing][sm] - fix build --- examples/alan-turing-portal/pages/[...slug].jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/alan-turing-portal/pages/[...slug].jsx b/examples/alan-turing-portal/pages/[...slug].jsx index 7e26fb3d..c7a6786b 100644 --- a/examples/alan-turing-portal/pages/[...slug].jsx +++ b/examples/alan-turing-portal/pages/[...slug].jsx @@ -25,7 +25,7 @@ export async function getStaticPaths() { const mddb = await clientPromise const allDocuments = await mddb.getFiles({ extensions: ['md', 'mdx'] }) - const paths = allDocuments.map((page) => { + const paths = allDocuments.filter(document => document.url_path !== '/').map((page) => { const parts = page.url_path.split('/') return { params: { slug: parts } } })