@@ -6,13 +6,17 @@ const startClients = '2025-02-25'
66const end = getDateXDaysAgo ( 1 )
77
88const providersSummary = await jsonFetcher (
9- `https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${ startProviders } &to=${ end } `
9+ `https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${ startProviders } &to=${ end } ` ,
1010)
1111const clientsSummary = await jsonFetcher (
12- `https://stats.filspark.com/clients/retrieval-success-rate/summary?from=${ startClients } &to=${ end } `
12+ `https://stats.filspark.com/clients/retrieval-success-rate/summary?from=${ startClients } &to=${ end } ` ,
13+ )
14+ const providerPaths = providersSummary . map (
15+ ( provider ) => `/provider/${ provider . miner_id } ` ,
16+ )
17+ const clientPaths = clientsSummary . map (
18+ ( client ) => `/client/${ client . client_id } ` ,
1319)
14- const providerPaths = providersSummary . map ( ( provider ) => `/provider/${ provider . miner_id } ` )
15- const clientPaths = clientsSummary . map ( ( client ) => `/client/${ client . client_id } ` )
1620// See https://observablehq.com/framework/config for documentation.
1721export default {
1822 // The app’s title; used in the sidebar and webpage titles.
@@ -49,5 +53,5 @@ export default {
4953 // linkify: true, // convert URLs in Markdown to links
5054 // typographer: false, // smart quotes and other typographic improvements
5155 // cleanUrls: true, // drop .html from URLs
52- dynamicPaths : [ ...providerPaths , ...clientPaths ]
56+ dynamicPaths : [ ...providerPaths , ...clientPaths ] ,
5357}
0 commit comments