Skip to content

Commit b82f53d

Browse files
committed
docs(server): fix raw route collection
1 parent 472ddc8 commit b82f53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/server/routes/raw/[...slug].md.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default eventHandler(async (event) => {
99

1010
const path = withLeadingSlash(slug.replace('.md', ''))
1111
// @ts-expect-error TODO: fix this
12-
const page = await queryCollection(event, 'content').path(path).first()
12+
const page = await queryCollection(event, 'docs').path(path).first()
1313
if (!page) {
1414
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
1515
}

0 commit comments

Comments
 (0)