Show top 5k markets in sitemap

This commit is contained in:
Austin Chen 2022-10-05 11:49:47 -04:00
parent 70bfec2742
commit b9ba3e75fa

View File

@ -4,7 +4,7 @@ import { getServerSideSitemap, ISitemapField } from 'next-sitemap'
import { listAllContracts } from 'web/lib/firebase/contracts'
export const getServerSideProps: GetServerSideProps = async (ctx) => {
const contracts = await listAllContracts(1000, undefined, 'popularityScore')
const contracts = await listAllContracts(5000, undefined, 'popularityScore')
const score = (popularity: number) => Math.tanh(Math.log10(popularity + 1))