bee-dashboard
bee-dashboard copied to clipboard
Swarm Extension: process is undefined
When using the bee-dashboard component in Swarm Extension, it does not render because Chrome does not have process.
Options:
- Create a util function that returns env variable or undefined
getEnvVar = (varName) => process?.env?[varName]
- Alter webpack component build to substitute at build time
REACT_APP_...
variables with values - Completely remove env variables and let everything be configurable through component props