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 1
1
import { promises as fs } from "fs"
2
2
import { notFound } from "next/navigation"
3
+ import path from "path"
3
4
4
5
import { BNToAmount , genMeta , isSepolia } from "@/utils"
5
6
@@ -15,7 +16,8 @@ export const generateMetadata = genMeta(() => ({
15
16
} ) )
16
17
17
18
const 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" )
19
21
const circulatingSupply = + circulatingSupplyStr
20
22
21
23
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 })
46
46
</ AppRouterCacheProvider >
47
47
{ process . env . NODE_ENV === "production" && (
48
48
< >
49
- < SpeedInsights > </ SpeedInsights >
49
+ < SpeedInsights sampleRate = { 0.8 } > </ SpeedInsights >
50
50
< Suspense fallback = { null } >
51
51
< GoogleAnalytics gaId = { process . env . NEXT_PUBLIC_GOOGLE_ANALYTICS_ID } />
52
52
</ Suspense >
You can’t perform that action at this time.
0 commit comments