|
1 | | -# ── Required ───────────────────────────────────────────────────────────────── |
2 | | -# Backend API base URL — MUST be set in production. |
3 | | -# Missing this in production will cause a startup error. |
4 | | -# Example: https://api.remitlend.com |
| 1 | +# ============================================================================== |
| 2 | +# REMITLEND FRONTEND - ENVIRONMENT VARIABLES TEMPLATE |
| 3 | +# ============================================================================== |
| 4 | +# Copy this file to '.env.local' or '.env' for local development. |
| 5 | +# Fill in values as appropriate for your local or production environment. |
| 6 | +# ============================================================================== |
| 7 | + |
| 8 | +# ── API & Deployment Config ────────────────────────────────────────────────── |
| 9 | + |
| 10 | +# Purpose: The base URL of the RemitLend Express Backend API. |
| 11 | +# Used by client pages and hooks (like useApi, useNotificationStream) to fetch off-chain details. |
| 12 | +# Example: http://localhost:3001 |
5 | 13 | NEXT_PUBLIC_API_URL=http://localhost:3001 |
6 | 14 |
|
7 | | -# ── Sentry Configuration ────────────────────────────────────────────────────── |
| 15 | +# Purpose: The frontend public base URL, used to configure openGraph meta tags and site metadata. |
| 16 | +# Example: http://localhost:3000 |
| 17 | +NEXT_PUBLIC_SITE_URL=http://localhost:3000 |
| 18 | + |
| 19 | + |
| 20 | +# ── Stellar & Soroban Config ───────────────────────────────────────────────── |
| 21 | + |
| 22 | +# Purpose: The Stellar network the application interacts with. |
| 23 | +# Example: TESTNET, PUBLIC (Mainnet), FUTURENET, STANDALONE |
| 24 | +NEXT_PUBLIC_STELLAR_NETWORK=TESTNET |
| 25 | + |
| 26 | +# Purpose: The RPC endpoint URL of the Soroban network. |
| 27 | +# Example: https://soroban-testnet.stellar.org |
| 28 | +NEXT_PUBLIC_STELLAR_RPC_URL=https://soroban-testnet.stellar.org |
| 29 | + |
| 30 | +# Purpose: The network passphrase for transaction builders to sign transactions on the target network. |
| 31 | +# Example: "Test SDF Network ; September 2015" (for Testnet) or "Public Global Stellar Network ; October 2015" (for Mainnet) |
| 32 | +NEXT_PUBLIC_STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015 |
| 33 | + |
| 34 | +# Purpose: The base URL for the Stellar Expert block explorer (without trailing slash). |
| 35 | +# Used to generate external links to check transactions or accounts. |
| 36 | +# Example: https://stellar.expert/explorer/testnet |
| 37 | +NEXT_PUBLIC_STELLAR_EXPLORER_URL=https://stellar.expert/explorer/testnet |
| 38 | + |
| 39 | +# Purpose: The Horizon API URL to fetch account balances and information. |
| 40 | +# Example: https://horizon-testnet.stellar.org |
| 41 | +NEXT_PUBLIC_HORIZON_URL=https://horizon-testnet.stellar.org |
| 42 | + |
| 43 | + |
| 44 | +# ── Smart Contract IDs ──────────────────────────────────────────────────────── |
| 45 | + |
| 46 | +# Purpose: The Soroban contract ID for the Loan Manager contract. |
| 47 | +# Example: CC1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx (leave blank if not deployed) |
| 48 | +NEXT_PUBLIC_LOAN_MANAGER_CONTRACT_ID= |
| 49 | + |
| 50 | +# Purpose: The Soroban contract ID for the overall Manager contract. |
| 51 | +# Example: CC1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx (leave blank if not deployed) |
| 52 | +NEXT_PUBLIC_MANAGER_CONTRACT_ID= |
| 53 | + |
| 54 | +# Purpose: The Soroban contract ID for the Remittance NFT contract. |
| 55 | +# Example: CD1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx (leave blank if not deployed) |
| 56 | +NEXT_PUBLIC_NFT_CONTRACT_ID= |
| 57 | + |
| 58 | + |
| 59 | +# ── Sentry Error Monitoring & Tracking ──────────────────────────────────────── |
| 60 | + |
| 61 | +# Purpose: Public Sentry DSN for client-side error reporting and performance tracking. |
| 62 | +# Example: https://a1b2c3d4e5f6g7h8i9j0@o0.ingest.sentry.io/0 |
8 | 63 | NEXT_PUBLIC_SENTRY_DSN= |
| 64 | + |
| 65 | +# Purpose: Private Sentry DSN for server-side / Edge runtime error reporting. |
| 66 | +# Example: https://a1b2c3d4e5f6g7h8i9j0@o0.ingest.sentry.io/0 |
9 | 67 | SENTRY_DSN= |
| 68 | + |
| 69 | +# Purpose: Sentry Organization slug/identifier used during build to upload source maps. |
| 70 | +# Example: remitlend |
10 | 71 | SENTRY_ORG= |
| 72 | + |
| 73 | +# Purpose: Sentry Project slug/identifier used during build to associate error reports. |
| 74 | +# Example: remitlend-frontend |
11 | 75 | SENTRY_PROJECT= |
12 | | -SENTRY_AUTH_TOKEN= |
13 | | -NODE_ENV=development |
14 | 76 |
|
15 | | -# Stellar Explorer base URL (no trailing slash) |
16 | | -# Mainnet: https://stellar.expert/explorer/public |
17 | | -# Testnet: https://stellar.expert/explorer/testnet (default) |
18 | | -NEXT_PUBLIC_STELLAR_EXPLORER_URL=https://stellar.expert/explorer/testnet |
| 77 | +# Purpose: Private Sentry authentication token allowing Sentry CLI to upload build source maps. |
| 78 | +# Example: sntryu_1234567890abcdef... |
| 79 | +SENTRY_AUTH_TOKEN= |
0 commit comments