Strapi v4 deployment to Heroku not working

In your Heroku config, add the APP_KEYS, JWT_SECRET, and API_TOKENS. Adding APP_KEYS alone did the trick for me.
.
This might help Heroku Deployment - #2 by Frilansutvecklaren