[format] format the code
This commit is contained in:
@@ -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 />
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user