Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/19 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Create a Heroku Postgres Client in Node.js

For Salesforce Functions written in Node.js, use the node-postgres (pg) package to access your Heroku PostgreSQL database. Access the DATABASE_URL environment variable with process.env to create a Postgres client instance.