Neon is a fully-managed serverless Postgres service.
npx neonctl projects create
. The connection string will be printed to the console.postgres://user:passwd@endpoint-pooler.region.aws.neon.build/neondb
.
npx neonctl connection-string --project-id <project-id> --pooled
.?pgbouncer=true&connect_timeout=10
to the connection string you just copied.DATABASE_URL
to your .env
file:
DATABASE_URL=postgres://user:passwd@endpoint-pooler.region.aws.neon.build/neondb?pgbouncer=true&connect_timeout=10
yarn run build-db && yarn run update-db
).