Skip to content

feat(db): add node-postgres driver support - #899

Merged
atinux merged 1 commit into
nuxt-hub:mainfrom
adamkasper:adam/node-postgres-driver
Oct 27, 2026
Merged

atinux merged 1 commit into
nuxt-hub:mainfrom
adamkasper:adam/node-postgres-driver

Conversation

@adamkasper

@adamkasper adamkasper commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Adds explicit node-postgres support for NuxtHub DB.

  • Drizzle documents PlanetScale Postgres through drizzle-orm/node-postgres.
  • NuxtHub users can now opt into that driver with driver: 'node-postgres'.
  • Keeps existing PostgreSQL auto-detection unchanged: default remains postgres-js, with PGlite fallback only for the default path.

Also updates docs with per-driver PostgreSQL install guidance and adds focused tests for config resolution and client creation.

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

@adamkasper is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown

Deployment failed for project nuxthub with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@pkg-pr-new

pkg-pr-new Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxthub/core@899

commit: 0f301af

Adds an opt-in `driver: 'node-postgres'` for PostgreSQL using `drizzle-orm/node-postgres` and `pg`, for example for PlanetScale Postgres. Auto-detection is unchanged: `postgres-js` stays the default, with PGlite as the local fallback.

- Pass the connection URL to `pg` as `connectionString`, or let `pg` connect from PG* env vars at runtime
- Support lazy runtime env resolution for Docker/K8s builds
- Document per-driver PostgreSQL install steps

Co-authored-by: Adam Kasper <adam@obvio.cz>
Amp-Thread-ID: https://ampcode.com/threads/T-01a17cd8-85e0-7493-94b8-db22bf535c87
@atinux
atinux force-pushed the adam/node-postgres-driver branch from 6a2e1c4 to 0f301af Compare October 27, 2026 14:30
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nuxthub Ready Ready Preview Oct 27, 2026 2:49pm UTC

@atinux
atinux merged commit 5798603 into nuxt-hub:main Oct 27, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 27, 2026

This branch was successfully deployed

1 active deployment
Preview — 0f301af4 Deployed Oct 27, 2026 by vercel[bot]
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.

2 participants