jjonte
1
For Workes & Pages, what is the name of the domain?
example.com
What is the error message?
PostgresError: connection is insecure (try using sslmode=require
)
What is the issue or error you’re encountering
Trying to use the local development options and it does not work.
What are the steps to reproduce the issue?
I run my app.
I use this workaround:
[[env.dev.hyperdrive]]
binding = "example"
id = "***"
localConnectionString = "postgresql://***"
[env.dev.vars]
LOCAL = true
localConnectionString = "postgresql://***"
new Client(env.LOCAL ? {connectionString:env.localConnectionString, ssl: { rejectUnauthorized: false }} : {connectionString:env.example.connectionString});