Skip to content

Commit f26d4bb

Browse files
committed
fix: build
1 parent cdad3d9 commit f26d4bb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { NextRequest, NextResponse } from "next/server";
2+
3+
export async function GET(request: NextRequest) {
4+
return NextResponse.json({
5+
data: "pong",
6+
});
7+
}

examples/api/src/app/api/tip-eth/route.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { NextRequest } from "next/server";
22
import { createPublicClient, formatEther, http, parseEther } from "viem";
33
import * as chains from "viem/chains";
44

5-
export function numberWithCommas(x: string | number) {
5+
function numberWithCommas(x: string | number) {
66
var parts = x.toString().split(".");
77
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
88
return parts.join(".");
99
}
1010

11-
export async function getEthUsdPrice(): Promise<number> {
11+
async function getEthUsdPrice(): Promise<number> {
1212
const client = createPublicClient({
1313
transport: http(),
1414
chain: chains.mainnet,

0 commit comments

Comments
 (0)