Application error while deploying strapi to Heroku

System Information
  • Strapi version: 4.0.6
  • OS: Windows 10
  • Database: Heroku postgres
  • Node version: 16.3.2
  • npm version: 8.3.1
  • Yarn version: 1.22.55

Hello, I followed the instructions provided in this tutorial :

but after i deploy it to Heroku and click view it just shows the “Application error” screen.

Checking the logs shows me H10 error codes which means that the application crashes. I tried numerous times with projects in both Europe and the U.S servers but the result is the same. I haven’t altered anything in my strapi files, other than the creation of initial admin, and followed the tutorial step-by-step.

Is there any way to fix this?