Skip to content

Commit

Permalink
fix: search params (#200)
Browse files Browse the repository at this point in the history
# Description

Edit search params query so that it doesn't pull and show partials in
the search results. These are what are 404'ing.
  • Loading branch information
itsacoyote committed Aug 22, 2024
1 parent 674691e commit 86f913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/search.json.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { serverQueryContent } from '#content/server';

export default eventHandler(async (event) => {
return serverQueryContent(event)
.where({ _type: 'markdown', navigation: { $ne: false } })
.where({ _type: 'markdown', _partial: false, navigation: { $ne: false } })
.find();
});

0 comments on commit 86f913a

Please sign in to comment.