docs: improve performances (#570)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sébastien Chopin
2023-08-30 12:36:13 +02:00
committed by Benjamin Canac
parent 1145f88bca
commit 7dff23912d
5 changed files with 41 additions and 25 deletions

View File

@@ -0,0 +1,5 @@
import { serverQueryContent } from '#content/server'
export default eventHandler(async (event) => {
return serverQueryContent(event).where({ _type: 'markdown', navigation: { $ne: false } }).find()
})