Skip to content

Commit 428aff3

Browse files
authored
Merge pull request #1473 from scroll-tech/fix-error
fix: partial error
2 parents 7c62ae1 + df34ea7 commit 428aff3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app/SCR-sSCR/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { promises as fs } from "fs"
22
import { notFound } from "next/navigation"
3+
import path from "path"
34

45
import { BNToAmount, genMeta, isSepolia } from "@/utils"
56

@@ -15,7 +16,8 @@ export const generateMetadata = genMeta(() => ({
1516
}))
1617

1718
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")
1921
const circulatingSupply = +circulatingSupplyStr
2022

2123
const { votable_supply } = await fetch(`${process.env.NEXT_PUBLIC_AGORA_API_URI}/api/v1/votable_supply`, {

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)