1
0
Fork 0

fix(org): Make all documentation available

This commit is contained in:
Joost De Cock 2023-07-27 10:14:18 +02:00
parent 5451e30f98
commit aebe311496

View file

@ -72,9 +72,8 @@ export async function getStaticProps({ locale, params }) {
* To learn more, see: https://nextjs.org/docs/basic-features/data-fetching * To learn more, see: https://nextjs.org/docs/basic-features/data-fetching
*/ */
export async function getStaticPaths() { export async function getStaticPaths() {
const somePaths = Object.keys(pages) const somePaths = Object.keys(pages).filter((path) => path !== 'docs')
.filter((path) => path.split('/').length < 5) //.filter((path) => path.split('/').length < 5)
.filter((path) => path !== 'docs')
return { return {
paths: [ paths: [