diff --git a/src/lib/trpc/routes/price.ts b/src/lib/trpc/routes/price.ts index 90579a22..9f1f4d6c 100644 --- a/src/lib/trpc/routes/price.ts +++ b/src/lib/trpc/routes/price.ts @@ -2,16 +2,17 @@ import { z } from "zod"; import { t } from "$lib/trpc/t"; +import { BIRDEYE_API_KEY } from "$env/static/private"; + export const price = t.procedure .input(z.string()) .query(async ({ input: token }) => { - const apiKey = import.meta.env.BIRDEYE_API_KEY; const response = await fetch( `https://public-api.birdeye.so/public/price/?address=${token}`, { headers: { Accept: "application/json", - "X-API-KEY": apiKey, + "X-API-KEY": BIRDEYE_API_KEY, "x-chain": "solana", }, }