I have a database using PostgreSQL but the published site is Vercel and when deploying for production is gives the error below. The error doesn't happen for Heroku
django.db.utils.OperationalError: FATAL:  no pg_hba.conf entry for host "123.456.789.102", user "example_user", database "example_db", SSL off
How do I solve this error, thank you. I have checked Google results aren't really helpful
I found the answer out. It was just not to use Heroku but instead I used a service called ElephantSQL and used the details and it worked perfectly well
How to solve error with syncing PostgreSQL with Vercel