app.json validation error: Invalid environment name:

Issue

When trying to perform a build you are getting the error app.json validation error: Invalid environment name even though there have been no changes to your app.json.

Resolution

A recent change has been made to Review Apps that now enforces a validation check on the keys under the "environments" section in the app.json file.

Previously these keys were ignored, however now, if you include any key not listed in app.json schema section of the devcenter you will get a validation error.

  • Allowed keys: test and review
  • Keys you may previously have used but that will no longer work: staging, production

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support