Repository navigation
Expand file tree
/
Copy path.env.local.example
More file actions
172 lines (155 loc) · 9.83 KB
/
Copy path.env.local.example
File metadata and controls
172 lines (155 loc) · 9.83 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Environment Variables Template
# Copy this file to .env.local and customize as needed for your environment
#
# NOTE: Variables prefixed with NEXT_PUBLIC_ are exposed to the browser.
# Never put secrets in NEXT_PUBLIC_ variables.
# ─── Supabase (Required) ──────────────────────────────────────────────────────
# Supabase project URL – get from https://app.supabase.com → Settings → API
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
# Supabase anonymous (public) key
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
# Supabase service role key (server-only, bypasses RLS)
SUPABASE_SERVICE_ROLE_KEY=
# ─── Stellar Contract Configuration ───────────────────────────────────────────
# Testnet smart contract address for the Invoice Liquidity Network
NEXT_PUBLIC_CONTRACT_ID=CD3TE3IAHM737P236XZL2OYU275ZKD6MN7YH7PYYAXYIGEH55OPEWYJC
# ─── Stellar Network Configuration ────────────────────────────────────────────
# Network passphrase for testnet
NEXT_PUBLIC_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# RPC endpoint for Stellar testnet
NEXT_PUBLIC_RPC_URL=https://soroban-testnet.stellar.org
# Human-readable network identifier (TESTNET, MAINNET, LOCAL)
NEXT_PUBLIC_NETWORK_NAME=TESTNET
# Stellar network identifier (testnet, public)
NEXT_PUBLIC_STELLAR_NETWORK=testnet
# Optional SEP-10 service domain; defaults to the current browser hostname
NEXT_PUBLIC_SEP10_HOME_DOMAIN=
# ─── Token Configuration (Testnet) ────────────────────────────────────────────
# USDC token contract address on testnet
NEXT_PUBLIC_TESTNET_USDC_TOKEN_ID=CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75
# EURC token contract address on testnet
NEXT_PUBLIC_TESTNET_EURC_TOKEN_ID=GDHU6WRG4IEQXM5NZ4BMPKOXHW76MZM4Y2IEMFDVXBSDP6SJY4ITNPP
# XLM token identifier (native asset)
NEXT_PUBLIC_TESTNET_XLM_TOKEN_ID=native-xlm
# ─── Governance Configuration ─────────────────────────────────────────────────
# Admin address for governance operations
NEXT_PUBLIC_GOVERNANCE_ADMIN_ADDRESS=GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
# Optional governance contract address
NEXT_PUBLIC_GOVERNANCE_CONTRACT_ID=
# ─── Feature Flags ────────────────────────────────────────────────────────────
# Enable Mock Service Worker API mocks in local development (set to "enabled")
NEXT_PUBLIC_API_MOCKING=disabled
# Enable insurance pool UI (true/false)
NEXT_PUBLIC_INSURANCE_POOL_ENABLED=false
# Enable oracle price feed (true/false)
NEXT_PUBLIC_ORACLE_ENABLED=false
# Enable Invoice NFT display (true/false)
NEXT_PUBLIC_NFT_ENABLED=false
# Display the global protocol-maintenance banner (true/false). Toggle via Vercel and redeploy.
NEXT_PUBLIC_MAINTENANCE_MODE=false
# Optional override for NFT contract address (defaults to NEXT_PUBLIC_CONTRACT_ID)
NEXT_PUBLIC_NFT_CONTRACT_ID=
# Soroban method for NFT metadata resolution
NEXT_PUBLIC_NFT_METADATA_METHOD=token_uri
# Optional event hints for NFT event parsing (format: "mint:Minted,mint;transfer:Transfer,transfer")
NEXT_PUBLIC_NFT_EVENT_HINTS=
# ─── Indexer API ──────────────────────────────────────────────────────────────
# The browser never calls the indexer REST API directly. ActivityFeed, charts and
# leaderboards go through the same-origin proxy at /api/indexer/*, which reads
# these SERVER-ONLY variables. Never put indexer credentials in NEXT_PUBLIC_* vars:
# the build fails if a NEXT_PUBLIC_*INDEXER*KEY/TOKEN/SECRET variable is set.
# Indexer REST API base URL (required for indexer-backed views)
INDEXER_URL=
# Bearer credential sent to the indexer (optional, server-only)
INDEXER_API_KEY=
# Upstream request timeout in milliseconds (default 8000, clamped 1000-30000)
INDEXER_TIMEOUT_MS=
# Indexer API version check. The indexer must send X-Indexer-Api-Version (1.x).
# `strict` (default) rejects responses without it; `allow-missing` is only for
# rolling out against an indexer that predates the header.
INDEXER_API_VERSION_POLICY=strict
# Seconds after the last indexed ledger before analytics are flagged as stale
# (default 300). Freshness comes from X-Indexer-Last-Ledger/-Last-Indexed-At.
INDEXER_STALE_AFTER_SECONDS=300
# Indexer WebSocket URL (real-time updates; public, carries no credentials)
NEXT_PUBLIC_INDEXER_WS_URL=ws://localhost:8080/ws
# ─── Notifications & Email ────────────────────────────────────────────────────
# Notification API base URL
NOTIFICATION_API=
# Resend API key for email delivery (payer reminders)
RESEND_API_KEY=
# Cron secret for protected API routes
CRON_SECRET=
# Secret key for unsubscribe token generation (HMAC signing)
# Must be a cryptographically random value; minimum 32 bytes recommended
UNSUBSCRIBE_TOKEN_SECRET=
# ─── WalletConnect ────────────────────────────────────────────────────────────
# WalletConnect project ID (get from https://cloud.walletconnect.com)
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
# ─── App Configuration ────────────────────────────────────────────────────────
# Public app URL (used in email links, deep links)
NEXT_PUBLIC_APP_URL=https://app.iln.finance
# ─── Real-User Monitoring (RUM) ───────────────────────────────────────────────
# Optional beacon endpoint for real-user Core Web Vitals. When set, CWV metrics
# collected via useReportWebVitals are also forwarded here (navigator.sendBeacon)
# in addition to the in-app analytics bridge. See docs/performance-monitoring.md.
NEXT_PUBLIC_RUM_ENDPOINT=
# Public app version label used by in-app release notes
NEXT_PUBLIC_APP_VERSION=dev
# Public contract version label used by the admin health dashboard
NEXT_PUBLIC_CONTRACT_VERSION=testnet:CD3TE3IA
# Optional ILN token contract override
NEXT_PUBLIC_ILN_TOKEN_CONTRACT_ID=
# ─── Status & Alert Integrations ──────────────────────────────────────────────
# Public Instatus page subdomain used by the status page
NEXT_PUBLIC_INSTATUS_SUBDOMAIN=
# Instatus API credentials for managing incidents
INSTATUS_API_KEY=
INSTATUS_PAGE_ID=
INSTATUS_OPEN_CANARY_INCIDENT_ID=
# Optional alert-routing webhook configuration (server-only)
ALERT_ROUTING_WEBHOOK_URL=
ALERT_ROUTING_SECRET=
# Webhook secret for authorized status incident updates (server-only)
STATUS_WEBHOOK_SECRET=
# ─── Authentication ───────────────────────────────────────────────────────────
# SEP-10 signing key for the configured home domain (server-only; never use a public prefix)
SEP10_SERVER_SECRET_KEY=
# SEP-10 home domain published in the domain's stellar.toml
SEP10_HOME_DOMAIN=
# JWT signing secret (server-only; use an independently generated secret)
JWT_SECRET_KEY=
# ─── Error Tracking (#794) ────────────────────────────────────────────────────
# Sentry DSN for browser/OS/wallet-version enriched error reporting
# When set, `src/lib/errorTracking.ts` forwards enriched events to Sentry
NEXT_PUBLIC_SENTRY_DSN=
# ─── Lighthouse CI Server (optional, #795) ────────────────────────────────────
# If you run an LHCI server, set these to push/upload trend data there as well
# (filesystem history + trend script work without a server)
#NEXT_PUBLIC_LHCI_SERVER_BASE_URL=
#LHCI_TOKEN=
# ─── GitHub Integration (Feedback API) ────────────────────────────────────────
# GitHub personal access token for feedback submission
GITHUB_TOKEN=
# GitHub repository owner
GITHUB_OWNER=
# GitHub repository name
GITHUB_REPO=
# ─── Customization ────────────────────────────────────────────────────────────
# To connect to a different Stellar network or contract:
#
# For Public Network:
# NEXT_PUBLIC_NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015
# NEXT_PUBLIC_RPC_URL=https://soroban-mainnet.stellar.org
# NEXT_PUBLIC_NETWORK_NAME=MAINNET
# NEXT_PUBLIC_STELLAR_NETWORK=public
#
# For Local Network (with stellar-cli):
# NEXT_PUBLIC_NETWORK_PASSPHRASE=Stellar Development Foundation Network ; May 2024a
# NEXT_PUBLIC_RPC_URL=http://localhost:8000/soroban/rpc
# NEXT_PUBLIC_NETWORK_NAME=LOCAL
#
# ─── IMPORTANT ────────────────────────────────────────────────────────────────
# - This file should be added to .gitignore (it is by default)
# - Never commit secrets or API keys to version control
# - Testnet configuration is safe to commit as it's not production