[format] format the code

This commit is contained in:
PrinOrange
2024-08-12 11:55:21 +08:00
parent 0fa04a99fc
commit ec50c6e770
4 changed files with 11 additions and 4 deletions

View File

@@ -2,7 +2,11 @@ import { Head, Html, Main, NextScript } from "next/document";
export default function Document() {
return (
<Html lang="en">
// If you are using a language based on RTL typesetting direction such as Arabic,
// please change the dir prop value in the following code to rtl
// Like <Html dir="rtl" lang="en">
// Otherwise, please do not change
<Html dir="ltr" lang="en">
<Head />
<body>
<Main />

View File

@@ -18,7 +18,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse<Respon
const result: TSearchResultItem[] = SearchIndex.search(searchText).map((item) => ({
id: item.id,
title: item.title,
summary:item.summary,
summary: item.summary,
tags: item.tags,
}));
res.status(200).json(result);