You also need to add the APP_KEYS from the local env file to your heroku config vars.
I added all of them from .env but it worked with only the APP_KEYS too. But better to add all if they are used in some way in strapis internal stuff.
APP_KEYS
JWT_SECRET
API_TOKEN_SALT