Skip to content

Remove allowedEnvironments from the .environmentrc.json config #2

@BrainRTP

Description

@BrainRTP

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions