My provider settings get reset every time I deploy

System Information
  • Strapi Version: 4.9.0
  • Operating System: Ubuntu 22.04
  • Database: Postgres
  • Node Version: v16.19.0
  • NPM Version: 8.19.3
  • Yarn Version: 1.22.19

I’m getting started with a new Strapi installation and I noticed that every time I deploy, the Auth provider settings that I had configured in the admin UI get reset. My username/password login credentials get reset as well. Is this normal? I think it’s bad DX to have to manually reconfigure auth providers and username/password every time I deploy. Is there a way I can avoid this behavior?

I figured it out. My Strapi was connecting to a sqlite db instead of the postgres db I had setup. Every time I would deploy to Dokku everything would get reset. I went through my config/database.js file and ensured everything was correct.

Env vars I had missed on my Dokku server side was DATABASE_CLIENT. Strapi defaulted it to sqlite becasue it was undefined.