-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (57 loc) · 2.32 KB
/
.env.example
File metadata and controls
78 lines (57 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# iPredict XYZ Environment Variables Example
# Copy this file to .env.local for development
# ===========================================
# FRONTEND CONFIGURATION
# ===========================================
# Solana RPC endpoint
# - Localnet: http://localhost:8899
# - Devnet: https://api.devnet.solana.com
# - Mainnet: https://api.mainnet-beta.solana.com
NEXT_PUBLIC_RPC_ENDPOINT=http://localhost:8899
# Program ID (update after deployment)
NEXT_PUBLIC_PROGRAM_ID=Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS
# Network name
# Options: localnet, devnet, mainnet-beta
NEXT_PUBLIC_NETWORK=localnet
# Optional: Custom RPC endpoints for better performance
# NEXT_PUBLIC_RPC_ENDPOINT_BACKUP=https://solana-api.projectserum.com
# ===========================================
# DEPLOYMENT CONFIGURATION
# ===========================================
# Deployer wallet path (DO NOT commit actual paths)
DEPLOYER_WALLET_PATH=~/.config/solana/id.json
# Platform authority wallet (for mainnet, use multi-sig)
PLATFORM_AUTHORITY=~/.config/solana/id.json
# Fee recipients
PLATFORM_FEE_RECIPIENT=YourWalletAddressHere
DEPLOYER_FEE_RECIPIENT=YourWalletAddressHere
# ===========================================
# OPTIONAL SERVICES
# ===========================================
# Analytics (optional)
# NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=GA-XXXXXXXXX
# Error tracking (optional)
# NEXT_PUBLIC_SENTRY_DSN=https://your-sentry-dsn
# API rate limiting (optional)
# RATE_LIMIT_REQUESTS_PER_MINUTE=60
# ===========================================
# DEVELOPMENT ONLY
# ===========================================
# Enable debug logging
DEBUG=true
# Skip wallet connection in development
NEXT_PUBLIC_MOCK_WALLET=false
# ===========================================
# PRODUCTION SECURITY
# ===========================================
# Content Security Policy
# CSP_HEADER="default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline';"
# CORS allowed origins (comma-separated)
# CORS_ORIGINS=https://yourdomain.com,https://app.yourdomain.com
# ===========================================
# NOTES
# ===========================================
# 1. Never commit actual private keys or sensitive data
# 2. Use different values for each environment
# 3. For production, use environment variables from your hosting provider
# 4. Keep this file updated as new variables are added