Skip to content

Commit d773663

Browse files
committed
fixup!
1 parent 48eeaff commit d773663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/scripts/orama-search/get-documents.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const getArticles = async () => {
6161
processDocument(
6262
{
6363
content: await readFile(join(root, path), 'utf8'),
64-
pathname: basename(path),
64+
pathname: path.replace(/\.mdx?$/, ''),
6565
},
6666
true
6767
)

0 commit comments

Comments
 (0)