I didn't realize it but I had been pushing the secretvars file up all along. I change to a different secrets file and deleted the secretvars. Then in the config file I had a problem because heroku couldn't find the secretpass file, the new secret file I created, because it was not being added in git. So I used a ternary operator in the config file and that fixed the problem. Locally, I have access to secretpass, this file is not pushed to github nor heroku, and heroku does not need that file.
I didn't realize it but I had been pushing the secretvars file up all along. I change to a different secrets file and deleted the secretvars. Then in the config file I had a problem because heroku couldn't find the secretpass file, the new secret file I created, because it was not being added in git. So I used a ternary operator in the config file and that fixed the problem. Locally, I have access to secretpass, this file is not pushed to github nor heroku, and heroku does not need that file.