luis
DTDrizzle Team
•Created by luis on 6/10/2024 in #help
Drizzle ORM + Supabase Enforce SSL
Adding
NODE_EXTRA_CA_CERTS="./server/certs/prod-ca-2021.crt"
to the envs didn't work:
I got this error in the edge function:
path not found server/certs/prod-ca-2021.crt: readfile './server/certs/prod-ca-2021.crt'
5 replies
DTDrizzle Team
•Created by luis on 6/10/2024 in #help
Drizzle ORM + Supabase Enforce SSL
I tried the Deno Postgres client. It works in Supabase Edge Functions without any additional config.
https://github.com/denodrivers/postgres
The Postgres client used by Drizzle might not be picking up the TLS config.
const client = new Client({
user: "z",
database: "postgres",
hostname: "aws-0-us-west-1.pooler.supabase.com",
port: 6543,
password: "z",
});
await client.connect();
const result = await client
.queryArray'SELECT ID FROM table WHERE ID = 1';
console.log(result.rows);
5 replies
DTDrizzle Team
•Created by luis on 6/10/2024 in #help
Drizzle ORM + Supabase Enforce SSL
Thanks! I saw this, but the edge function is deployed to supabase. As far as I understand, the edge functions are already pre-configured:
https://supabase.com/docs/guides/functions/connect-to-postgres#ssl-connections
5 replies
CDCloudflare Developers
•Created by Cory on 4/12/2024 in #pages-help
How to enable unsafe binding in config
I'm experiencing the same issue. Did you manage to solve it? - ratelimit binding
5 replies