File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import { promises as fs } from "fs"
22import { notFound } from "next/navigation"
3+ import path from "path"
34
45import { BNToAmount , genMeta , isSepolia } from "@/utils"
56
@@ -15,7 +16,8 @@ export const generateMetadata = genMeta(() => ({
1516} ) )
1617
1718const ScrAndsSCRPage = async ( ) => {
18- const circulatingSupplyStr = await fs . readFile ( process . cwd ( ) + "/public/tokenomics/circulatingSupply.txt" , "utf8" )
19+ const circulatingSupplyFile = path . join ( process . cwd ( ) , "public/tokenomics/circulatingSupply.txt" )
20+ const circulatingSupplyStr = await fs . readFile ( circulatingSupplyFile , "utf8" )
1921 const circulatingSupply = + circulatingSupplyStr
2022
2123 const { votable_supply } = await fetch ( `${ process . env . NEXT_PUBLIC_AGORA_API_URI } /api/v1/votable_supply` , {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
4646 </ AppRouterCacheProvider >
4747 { process . env . NODE_ENV === "production" && (
4848 < >
49- < SpeedInsights > </ SpeedInsights >
49+ < SpeedInsights sampleRate = { 0.8 } > </ SpeedInsights >
5050 < Suspense fallback = { null } >
5151 < GoogleAnalytics gaId = { process . env . NEXT_PUBLIC_GOOGLE_ANALYTICS_ID } />
5252 </ Suspense >
You can’t perform that action at this time.
0 commit comments