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

[BUG] Unable to set env var default values within template config. #42

Closed
flancast90 opened this issue May 31, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@flancast90
Copy link

Describe the bug
Default env variable values cannot be set in config.json files for templates.

Expected behavior
The optimal environment variable creation process would allow a template creator to set a default value within the config file, which could then be edited as-needed by users. This would streamline actions such as using dynamic base URLs for APIs, as shown in @paulkr's comment in #41.

Example

"envVars": {
    "FAKE_API_KEY": "123456"
  },
@paulkr
Copy link
Member

paulkr commented Jun 3, 2022

Since each environment variable has a value for the development (test) and production (live) environments, you have to specify both values in the configuration.

Example:

{
  "envVars": {
    "FAKE_API_KEY": {
      "development": "fake-development-api-key",
      "production": "fake-production-api-key"
    }
  }
}

@paulkr paulkr closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants