@luxexchange/config
v1.0.3
Published
Configuration management package for the Uniswap Universe monorepo.
Readme
@universe/config
Configuration management package for the Uniswap Universe monorepo.
Overview
This package provides centralized configuration management for all Uniswap 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
