Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Flags #1407

Open
mnzaki opened this issue Aug 13, 2019 · 0 comments
Open

Feature Flags #1407

mnzaki opened this issue Aug 13, 2019 · 0 comments

Comments

@mnzaki
Copy link
Contributor

mnzaki commented Aug 13, 2019

Scope of the feature

Add build-time configurability for some constants or feature flags. Example uses:

  • configure registry's built in smart contract address and ipfs connector
  • enable/disable identity creation (use dummy identity instead)
  • enable/disable entropy collection

There are a few ways:

  • .env file through, of course, react-native-dotenv
    • can store config values for dev and prod envs in separate files, so we see the values in each environment in one place
  • inline babel transformation of process.env['SOME_ENV_VAR'] via babel-plugin-transform-inline-env-variables
    • values are in process environment
      • config can be manually loaded into process env anyway
    • we'll probably depend on fewer vars, maybe just NODE_ENV, and making the config value decisions inline in code
  • use pre-existing src/config.ts file?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant