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!