Skip to content

Commit

Permalink
Add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Nov 22, 2023
1 parent 5d0cf8d commit ce35e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/.env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ENDPOINT="https://api.devnet.solana.com"
BACKEND_ENDPOINT="https://api.devnet.solana.com"
CLUSTER="devnet"
2 changes: 1 addition & 1 deletion frontend/pages/api/vesting/v1/vesting_accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit ce35e5f

Please sign in to comment.