[alan-turing][sm] - fix build

This commit is contained in:
Luccas Mateus de Medeiros Gomes 2023-05-01 21:40:46 -03:00
parent 026059184a
commit ed3a26cd6d

View File

@ -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 } }
})