Deno Jupyter with --unsafely-ignore-certificate-errors

How can i configure Deno to run jupyter notebooks with this flag: --unsafely-ignore-certificate-errors ???

I'm trying to use node-postgres module npm:pg with a RDS Postgres database that requires SSL

import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";

const enableSsl =
  Deno.env.get("DATABASE_ENABLE_SSL") === "true"
    ? {
        rejectUnauthorized: false,
        ca: await Deno.readTextFile("./global-bundle.pem"),
      }
    : false;
const pool = new Pool({
  connectionString: Deno.env.get("DATABASE_URL"),
  ssl: enableSsl,
});

export const db = drizzle({ client: pool });
Was this page helpful?