dm3 icon indicating copy to clipboard operation
dm3 copied to clipboard

Make networks configurable only using .env

Open AlexNi245 opened this issue 1 year ago • 0 comments

Ideally, the configuration of networks could be moved to the environment, allowing all necessary configurations to be managed from the .env file. This would eliminate the need to manually change network settings in the frontend client when switching between staging and production.

  • [x] Add fields to the network to add mainnet and genome related information (chainId,rpc,name)
  • [x] Add the related fields to Config interface and supply them wherever <DM3> is used
  • [x] use the values from the Config obj in useMainnetProvider.tsx and Home.tsx to configure the networks
  • [x] Apply the changes needed to the CI so staging and production build are passing the right env to the build

AlexNi245 avatar Jan 16 '24 08:01 AlexNi245