When using stack container deployment (config set stack), you would need changing config vars on the dashboard at heroku. But something bad happen. Step by step:
I want to change env vars at Dashboard or trough config set without deleting and rebuilding app.
Finally, after testing a lot, I found that by changing Deploy to Heroku Git and then changing Settings. Automatically Deploy move to Github Connected, preserving the new values for env var you modified.