We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472ddc8 commit b82f53dCopy full SHA for b82f53d
docs/server/routes/raw/[...slug].md.get.ts
@@ -9,7 +9,7 @@ export default eventHandler(async (event) => {
9
10
const path = withLeadingSlash(slug.replace('.md', ''))
11
// @ts-expect-error TODO: fix this
12
- const page = await queryCollection(event, 'content').path(path).first()
+ const page = await queryCollection(event, 'docs').path(path).first()
13
if (!page) {
14
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
15
}
0 commit comments