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

Allow to define the required dynamic environment configurations in the same .env.config file. #14

Open
suthagar23 opened this issue Oct 8, 2020 · 0 comments
Labels
hacktoberfest Hacktoberfest New Feature Requesting new feature

Comments

@suthagar23
Copy link
Member

Current flow
Users have to pass their dynamic environment configuration requirements through the server start or dotEnv.

{
   "BFF_URL": "{{BASE_URL}}/api/v1",
}

Here, User have to start the server with BASE_URL in the following way, otherwise, it will be undefined

BASE_URL=https://abc.com yarn start

New Requirement

  1. Users should able to define their dynamic environment configurations in the same .env.config file.
{
   "BASE_URL" : "https://abc.com",
   "BFF_URL": "{{BASE_URL}}/api/v1",
}
  1. Users must define their dynamic environment keys before to the required environment key. (No need to check the BASE_URl after the BFF_URL in the top to bottom order)
  2. All other configuration methods need to be the same as for these environment keys as well. Just an example,
{
   "BASE_URL" : { 
        DEV: "https://abc.com",
        DEFAULT: "https://abc.com"
   }
   "BFF_URL": "{{BASE_URL}}/api/v1",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest New Feature Requesting new feature
Projects
None yet
Development

No branches or pull requests

1 participant