SSL Deploying with Postgres from aiven.io

Hello I am trying to deploy my Strapi app with the free postgres plan from aiven.io.
I have set up the connection string and it has the ?ssl=require in the string.
Something like this

postgres://avnadmin:SOME_ADMIN@somehost.d.aivencloud.com:19827/defaultdb?sslmode=require

Now when building I get the following error (pic 2)

The SSL I have from aiven looks as like this (pic 1). on what ENV var am i passing this to? Thanks

This topic has been created from a Discord post (1237360301628981289) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

What worked for me was I removed ?sslmode=require.
And updated the config/database.js like so .