From ce35e5ff416d3b445afc9310bf2a2af1702f31b2 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Wed, 22 Nov 2023 23:23:34 +0000 Subject: [PATCH] Add env variable --- frontend/.env.sample | 1 + frontend/pages/api/vesting/v1/vesting_accounts.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/.env.sample b/frontend/.env.sample index d6c6bf3ef..3ce04aef1 100644 --- a/frontend/.env.sample +++ b/frontend/.env.sample @@ -1,2 +1,3 @@ ENDPOINT="https://api.devnet.solana.com" +BACKEND_ENDPOINT="https://api.devnet.solana.com" CLUSTER="devnet" diff --git a/frontend/pages/api/vesting/v1/vesting_accounts.ts b/frontend/pages/api/vesting/v1/vesting_accounts.ts index e4f812d5e..84af6b946 100644 --- a/frontend/pages/api/vesting/v1/vesting_accounts.ts +++ b/frontend/pages/api/vesting/v1/vesting_accounts.ts @@ -11,7 +11,7 @@ import idl from '@pythnetwork/staking/target/idl/staking.json' import { splTokenProgram } from '@coral-xyz/spl-token' import { TOKEN_PROGRAM_ID } from '@solana/spl-token' -const connection = new Connection(process.env.ENDPOINT!) +const connection = new Connection(process.env.BACKEND_ENDPOINT!) const provider = new AnchorProvider( connection, new NodeWallet(new Keypair()),