Skip to content

Commit f664432

Browse files
committed
Fix build
1 parent b5a0d59 commit f664432

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/api/stats/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function GET(req: NextRequest) {
3030
? (carryCosts[formattedSymbol] ?? null)
3131
: null
3232

33-
const headesrList = await headers()
33+
const headersList = await headers()
3434
const host = headersList.get('host')
3535
const metrics = await fetchTokenMetrics({
3636
hostname:

src/lib/utils/api/index-data-provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type IndexDataPeriod =
3131
export type IndexDataInterval = 'latest' | 'minute' | 'hour' | 'daily'
3232

3333
type FormatUrlArgs = {
34-
hostname: string
34+
hostname?: string
3535
chainId: number
3636
tokenAddress: string
3737
metrics?: IndexDataMetric[]
@@ -40,7 +40,7 @@ type FormatUrlArgs = {
4040
}
4141

4242
function formatUrl({
43-
hostname,
43+
hostname = '',
4444
chainId,
4545
tokenAddress,
4646
metrics = [],
@@ -59,7 +59,7 @@ function formatUrl({
5959
}
6060

6161
export async function fetchTokenMetrics({
62-
hostname = '',
62+
hostname,
6363
chainId,
6464
tokenAddress,
6565
metrics,

0 commit comments

Comments
 (0)