bee-dashboard icon indicating copy to clipboard operation
bee-dashboard copied to clipboard

Swarm Extension: process is undefined

Open vojtechsimetka opened this issue 2 years ago • 0 comments

When using the bee-dashboard component in Swarm Extension, it does not render because Chrome does not have process.

Options:

  1. Create a util function that returns env variable or undefined getEnvVar = (varName) => process?.env?[varName]
  2. Alter webpack component build to substitute at build time REACT_APP_... variables with values
  3. Completely remove env variables and let everything be configurable through component props

Screenshot 2022-08-04 at 22 06 33 Screenshot 2022-08-04 at 22 06 42

vojtechsimetka avatar Aug 05 '22 05:08 vojtechsimetka