Skip to content

Commit 04781ff

Browse files
committed
fix: use Helius RPC for frontend mainnet connection
Public Solana RPC returns 403 for getLatestBlockhash. Inject HELIUS_MAINNET_RPC from GitHub secret during CI build.
1 parent dac4894 commit 04781ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/deploy-frontend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Install and build
2626
working-directory: frontend
27+
env:
28+
VITE_MAINNET_RPC: ${{ secrets.HELIUS_MAINNET_RPC }}
2729
run: |
2830
pnpm install --frozen-lockfile
2931
pnpm build

frontend/.env.production

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VITE_API_URL=/api
2-
VITE_MAINNET_RPC=https://api.mainnet-beta.solana.com

0 commit comments

Comments
 (0)