Remove defaults for env vars

This commit is contained in:
Adw8 2025-01-27 17:07:54 +05:30
parent 86b168af4d
commit b8013b6f23
3 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ const connection = new Connection(
export interface PaymentResult { export interface PaymentResult {
success: boolean success: boolean
transactionSignature?: string, transactionSignature?: string
error?: string error?: string
} }

View File

@ -1,8 +1,8 @@
import { Connection } from '@solana/web3.js'; import { Connection } from '@solana/web3.js';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token'; import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
const SOLANA_RPC_URL = process.env.NEXT_PUBLIC_SOLANA_RPC_URL || 'https://young-radial-orb.solana-mainnet.quiknode.pro/67612b364664616c29514e551bf5de38447ca3d4'; const SOLANA_RPC_URL = process.env.NEXT_PUBLIC_SOLANA_RPC_URL;
const SOLANA_WEBSOCKET_URL = process.env.NEXT_PUBLIC_SOLANA_WEBSOCKET_URL || 'wss://young-radial-orb.solana-mainnet.quiknode.pro/67612b364664616c29514e551bf5de38447ca3d4'; const SOLANA_WEBSOCKET_URL = process.env.NEXT_PUBLIC_SOLANA_WEBSOCKET_URL;
const connection = new Connection( const connection = new Connection(
SOLANA_RPC_URL, SOLANA_RPC_URL,