Skip to content

Conversation

jawj
Copy link

@jawj jawj commented Sep 7, 2025

To try this out:

docker build --tag gmneonlocal ./app

docker run \
  --name db \
  -p 5432:5432 -p 4433:4433 \ 
  -e NEON_API_KEY=<API_KEY> \
  -e NEON_PROJECT_ID=twilight-lake-13291575 \
  -e PARENT_BRANCH_ID=br-withered-tree-a8yhsvyw \
  --rm gmneonlocal

And paste this in the Node REPL:

neon = require('@neondatabase/serverless')
neon.neonConfig.useSecureWebSocket = neon.neonConfig.pipelineConnect = false
neon.neonConfig.wsProxy = (host, port) => `localhost:4433/v1?address=${host}:${port}`

p = new neon.Pool({ connectionString: 'postgresql://neon:npg@localhost/neondb' })
p.query('SELECT now()').then(res => console.log(res)).catch(e => console.log(e.message))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant