[alan-turing][sm] - fix build
This commit is contained in:
parent
026059184a
commit
ed3a26cd6d
@ -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 } }
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user