Skip to content

fix(db): support PostgreSQL environment variables at runtime - #923

Open
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/postgres-runtime-env
Open

fix(db): support PostgreSQL environment variables at runtime#923
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/postgres-runtime-env

Conversation

@onmax

@onmax onmax commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

NuxtHub's generated non-Cloudflare postgres-js client currently rejects runtime configuration unless a connection URL is available. That prevents Postgres.js from applying its native PG* environment fallback and forces container deployments to serialize discrete credentials into a URL.

This keeps the existing URL priority unchanged. When no URL is available but PGHOST, PGPORT, PGDATABASE, PGUSERNAME / PGUSER, or PGPASSWORD is set, the generated client now invokes Postgres.js with the configured options and lets the driver resolve its environment. With neither input form, the existing NuxtHub configuration error remains.

The change is limited to the explicit non-Cloudflare production postgres-js runtime. Driver detection, build and development migrations, Cloudflare, Neon, and replica configuration are unchanged.

@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

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

commit: ea09cfb

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