Optimize static props a bit.

This commit is contained in:
Brenden Matthews
2022-10-04 22:37:40 -05:00
committed by Brenden Matthews
parent 1051acbe88
commit ec8981c5da
5 changed files with 25 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
import Layout from '../components/Layout'
import SEO from '../components/SEO'
import { getLua, Documentation } from '../utils/doc-utils'
import { getLua, Documentation, filterDesc } from '../utils/doc-utils'
import Docs from '../components/Docs'
import { getSearchIndex, SearchIndex } from '../utils/search'
@@ -24,7 +24,7 @@ export default function Lua(props: LuaProps) {
}
export async function getStaticProps() {
const lua = getLua()
const lua = filterDesc(getLua())
const searchIndex = getSearchIndex()
return { props: { lua, searchIndex } }