clean up env vars: remove obsolete, add missing
Commented out unused environment variables in .env.example: - VITE_MARKET_RELAYS (market uses VITE_NOSTR_RELAYS instead) - VITE_SUPPORT_NPUB (config.support.npub never consumed) - VITE_LIGHTNING_ENABLED (config.market.lightningEnabled never consumed) - VITE_MARKET_DEFAULT_CURRENCY (config.market.defaultCurrency never consumed) Added missing environment variables to .env.example: - VITE_APP_NAME (used in market module) - VITE_LNBITS_DEBUG (used in lnbits config) - VITE_WEBSOCKET_ENABLED (used in app config) Also commented out corresponding unused config in src/lib/config/index.ts: - MarketConfig.lightningEnabled and defaultCurrency - AppConfig.nostrclient (defined but never used) - AppConfig.support (never consumed) Removed legacy VITE_API_BASE_URL fallback from WalletWebSocketService.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3d69cfa15d
commit
4a95258acf
3 changed files with 42 additions and 25 deletions
17
.env.example
17
.env.example
|
|
@ -1,3 +1,6 @@
|
|||
# App Configuration
|
||||
VITE_APP_NAME=MyApp
|
||||
|
||||
# Nostr Configuration
|
||||
VITE_NOSTR_RELAYS=["wss://relay.damus.io","wss://relay.snort.social"]
|
||||
VITE_ADMIN_PUBKEYS=["your-admin-pubkey-here"]
|
||||
|
|
@ -5,6 +8,8 @@ VITE_ADMIN_PUBKEYS=["your-admin-pubkey-here"]
|
|||
# API Configuration
|
||||
VITE_LNBITS_BASE_URL=http://localhost:5000
|
||||
VITE_API_KEY=your-api-key-here
|
||||
VITE_LNBITS_DEBUG=false
|
||||
VITE_WEBSOCKET_ENABLED=true
|
||||
|
||||
# Lightning Address Domain (optional)
|
||||
# Override the domain used for Lightning Addresses
|
||||
|
|
@ -17,13 +22,17 @@ VITE_VAPID_PUBLIC_KEY=your-vapid-public-key
|
|||
VITE_PUSH_NOTIFICATIONS_ENABLED=true
|
||||
|
||||
# Support
|
||||
VITE_SUPPORT_NPUB=your-support-npub
|
||||
# OBSOLETE: Not used in codebase - config.support.npub is never consumed
|
||||
# VITE_SUPPORT_NPUB=your-support-npub
|
||||
|
||||
# Image Upload Configuration (pict-rs)
|
||||
VITE_PICTRS_BASE_URL=https://img.mydomain.com
|
||||
|
||||
# Market Configuration
|
||||
VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrrvc6r2qf8waehxw309akxucnfw3ejuct5d96xcctw9e5k7tmwdaehgunjv4kxz7f0v96xjmczyqrfrfkxv3m8t4elpe28x065z30zszaaqa4u0744qcmadsz3y50cjqcyqqq82scmcafla
|
||||
VITE_MARKET_RELAYS=["wss://relay.damus.io","wss://relay.snort.social","wss://nostr-pub.wellorder.net"]
|
||||
VITE_LIGHTNING_ENABLED=true
|
||||
VITE_MARKET_DEFAULT_CURRENCY=sat
|
||||
# OBSOLETE: Not used in codebase - market uses VITE_NOSTR_RELAYS instead
|
||||
# VITE_MARKET_RELAYS=["wss://relay.damus.io","wss://relay.snort.social","wss://nostr-pub.wellorder.net"]
|
||||
# OBSOLETE: Not used in codebase - config.market.lightningEnabled is never consumed
|
||||
# VITE_LIGHTNING_ENABLED=true
|
||||
# OBSOLETE: Not used in codebase - config.market.defaultCurrency is never consumed
|
||||
# VITE_MARKET_DEFAULT_CURRENCY=sat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue