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

Config: Allow default value for when environment variables not set #765

Open
1 of 3 tasks
kael-shipman opened this issue Jan 20, 2022 · 0 comments
Open
1 of 3 tasks

Comments

@kael-shipman
Copy link

I'm submitting a...

  • Bug report
  • Feature request
  • Question

Current behavior

You can specify environment variables for config, but if the environment variable is not set, you can't provide a default (fallback) value.

Expected behavior

Should be able to provide { "ENV": "MY_ENV_VAR", "default": "some-value" } as a value, and when MY_ENV_VAR is not set, some-value should be used.

Environment


db-migrate version: 0.11.13
db-migrate driver with versions: mysql v2.2.0

Additional information:
- Node version: v17.3.0
- Platform: Linux (Ubuntu 20.04.3)
kael-shipman added a commit to kael-shipman/node-db-migrate that referenced this issue Jan 21, 2022
kael-shipman added a commit to kael-shipman/node-db-migrate that referenced this issue Jan 21, 2022
kael-shipman added a commit to kael-shipman/node-db-migrate that referenced this issue Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant