Deploy strapi v4 with local sqlite with quick flag to Heroku Postgres

System Information
  • Strapi Version: 4.04
  • Operating System: Mac OS Monterey v12.1
  • Database: Postgres
  • Node Version: v16.13.0
  • NPM Version: v8.2.0
  • Yarn Version: v1.22.10

I have installed a local instance of Strapi 4 on localhost by --quickstart flag. I have deployed it on Heroku to a Postgres hobby dev db.

I have set my config vars for DATABASE_URL, and set my NODE_ENV to production, and three config vars for my Cloudinary settings.

My build pack is set to heroku/nodejs.

These are all settings I have for my strapi v3 instances running on heroku without any problems.
The problem I am running into with Strapi v4 is that after deploying to Heroku, and creating a new user, the data is only persistent for a couple of hours before I get logged out from application and I am redirected to a new user create page, the data structure and my collections are still present, but all the previous data is wiped out in the collections and whatever settings I saved for my collections and internationalization.

I have created a ticket on Heroku, but the reply was that " this appears to be with strapi and a configuration at your application level and falls outside the nature of the Heroku Support policy "

Anyone who has a clue of why this is happening?

-thanks :slight_smile: