@l.x/config
v1.0.7
Published
Configuration management package for the Lux Exchange monorepo.
Downloads
2,676
Readme
@universe/config
Configuration management package for the Lux Exchange monorepo.
Overview
This package provides centralized configuration management for all Lux Exchange applications (web, mobile, and extension). It handles environment variables and provides a platform-specific implementation for accessing configuration values.
Usage
import { getConfig } from '@universe/config'
const config = getConfig()
console.log(config.infuraKey)Platform Support
- Web/Extension: Uses
process.envdirectly - Mobile: Uses
react-native-dotenvfor environment variable management
Configuration Values
See src/config-types.ts for the complete list of configuration options.
Environment Variable Naming
- Web: Variables must be prefixed with
REACT_APP_ - Extension: Variables use standard naming without prefix
- Mobile: Variables use standard naming without prefix, but also require
react-native-dotenvsetup
