diff --git a/pages/api/tokentiers.ts b/pages/api/tokentiers.ts index 124ad89c..46550dab 100644 --- a/pages/api/tokentiers.ts +++ b/pages/api/tokentiers.ts @@ -42,7 +42,7 @@ async function buildClient(): Promise { const clientKeypair = new Keypair() const options = AnchorProvider.defaultOptions() - const rpcUrl = process.env.NEXT_PUBLIC_RPC_URL + const rpcUrl = process.env.NEXT_PUBLIC_ENDPOINT if (!rpcUrl) { throw new Error('MANGO_RPC_URL environment variable is not set') }