mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-08 08:39:36 -04:00
Fix supabase IPV6 only host
This commit is contained in:
@@ -3,7 +3,7 @@ module.exports = {
|
||||
{
|
||||
name: "api",
|
||||
script: "node",
|
||||
args: "-r tsconfig-paths/register backend/api/lib/serve.js",
|
||||
args: "-r tsconfig-paths/register --dns-result-order=ipv4first backend/api/lib/serve.js",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
NODE_PATH: "/usr/src/app/node_modules", // <- ensures Node finds tsconfig-paths
|
||||
|
||||
@@ -53,11 +53,13 @@ const newClient = (
|
||||
const { instanceId, password, ...settings } = props
|
||||
|
||||
const config = {
|
||||
host: 'db.ltzepxnhhnrnvovqblfr.supabase.co',
|
||||
// This host is IPV4 compatible, for the google cloud VM
|
||||
host: 'aws-1-us-west-1.pooler.supabase.com',
|
||||
port: 5432,
|
||||
user: `postgres`,
|
||||
user: `postgres.ltzepxnhhnrnvovqblfr`,
|
||||
password: password,
|
||||
database: 'postgres',
|
||||
pool_mode: 'session',
|
||||
ssl: { rejectUnauthorized: false },
|
||||
family: 4, // <- forces IPv4
|
||||
...settings,
|
||||
|
||||
Reference in New Issue
Block a user