Show top 5k markets in sitemap
This commit is contained in:
parent
70bfec2742
commit
b9ba3e75fa
|
@ -4,7 +4,7 @@ import { getServerSideSitemap, ISitemapField } from 'next-sitemap'
|
||||||
import { listAllContracts } from 'web/lib/firebase/contracts'
|
import { listAllContracts } from 'web/lib/firebase/contracts'
|
||||||
|
|
||||||
export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
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))
|
const score = (popularity: number) => Math.tanh(Math.log10(popularity + 1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user