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

Remove allowedEnvironments from the .environmentrc.json config #2

Open
BrainRTP opened this issue Mar 27, 2023 · 0 comments
Open

Remove allowedEnvironments from the .environmentrc.json config #2

BrainRTP opened this issue Mar 27, 2023 · 0 comments

Comments

@BrainRTP
Copy link

Hi! The allowedEnvironments parameter in the config is responsible for the list of environments that can be passed.
Recently I had this problem that I added .env.new to /environments but on startup I get an error that this environment is not in the list of available environments.
I wondered why the error occurs as .env.new is present in /environments.
The problem is that I forgot to add the new environment to the list of allowedEnvironments.
I think it's best to get rid of the allowedEnvironments in the config and scan the /environments folder and figure out which environments are available.
Of course, remembering to update the error message.

Thank you!

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