Skip to content

Commit

Permalink
feat: disable vercel caching (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbulma authored Nov 28, 2023
1 parent ae978a7 commit f3aa9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions front/src/app/api/balance/[address]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function GET(_req: Request, { params }: { params: { address: Hex }
}
const result = await fetch(
`https://api-sepolia.etherscan.io/api?module=account&action=balance&address=${address}&tag=latest&apikey=${process.env.ETHERSCAN_API_KEY}`,
{ cache: "no-store" },
);
const resultJSON = await result.json();
const balance = BigInt(resultJSON?.result || 0);
Expand Down
1 change: 1 addition & 0 deletions front/src/app/api/users/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function GET(_req: Request, { params }: { params: { id: Hex } }) {
if (user?.account) {
const result = await fetch(
`https://api-sepolia.etherscan.io/api?module=account&action=balance&address=${user.account}&tag=latest&apikey=${process.env.ETHERSCAN_API_KEY}`,
{ cache: "no-store" },
);
const resultJSON = await result.json();
balance = BigInt(resultJSON?.result || 0);
Expand Down

0 comments on commit f3aa9fd

Please sign in to comment.