I am using Drizzle in a NextJS project that uses Postgres as database. In some use-cases the database connection works while in others the connection gets an error about not being able to connect via TLS. The server, which is running with Docker on localhost does not have TLS configured, so that is correct that it does not connect, however I am not sure where the client gets the idea from that it has to connect with TLS, since other connections use a plain connection and the database config url does not have sslmode set (or when I put sslmode=disable it does not work either).
I wonder how this can be debugged, to get around the problem I am currently using the sql scripts directly in Drizzle Studio which works since it uses the plain text connection to localhost, but except for testing that is not workable.
The version I am using is drizzle-orm:0.45.1 and drizzle-kit:0.31.9 and Postgres is version 15