[Fixed] anvil.app.environment no "name" attribute

The code suggested at https://anvil.works/beta-docs/deployment-new-ide/environments-and-code#getting-the-current-environment (e.g. if anvil.app.environment.name == "Production") is not working for me. The anvil.app.environment doesn’t seem to have a name attribute defined in the Debug environment.

2 Likes

thanks for reporting @hugetim
we’ll get that fixed and update that thread when it’s live.

Edit:
that should now be fixed

2 Likes