Open JCKalt opened 9 months ago
added ssl decl below to fix db access inside: src/pages/api/getDeviceInfo.js
const pool = new Pool({ host: process.env.PGHOST_2, port: process.env.PGPORT_2, database: process.env.PGDATABASE_2, user: process.env.PGUSER_2, ssl: { rejectUnauthorized: false } });
Need to research how to remove need for ssl: { rejectUnauthorized: false }
This work: https://chat.openai.com/share/3e7f5507-c5f3-4724-9feb-7e43ec075089