fix(infra): rename pgweb DATABASE_URL to PGWEB_DATABASE_URL #62

Merged
julien merged 1 commits from fix/infra/pgweb-env-var into main 2026-05-08 22:58:22 +02:00

1 Commits

Author SHA1 Message Date
Julien Gautier ddddbc592b fix(infra): rename pgweb DATABASE_URL to PGWEB_DATABASE_URL
CI / commits (pull_request) Successful in 1m23s
CI / check (pull_request) Successful in 1m30s
CI / scan (pull_request) Successful in 1m33s
CI / a11y (pull_request) Successful in 1m24s
CI / perf (pull_request) Successful in 2m55s
pgweb 0.16 deprecated `DATABASE_URL` in favour of
`PGWEB_DATABASE_URL`. With the old name, the container starts up,
emits a `[DEPRECATION]` warning, then crashes:

    Error: Invalid URL. Valid format:
    postgres://user:password@host:port/db?sslmode=mode

— because the new code path reads `PGWEB_DATABASE_URL` (empty)
and the URL parser rejects an empty string.

Rename the env key in the compose file. Same value, just the new
name.
2026-05-08 22:54:48 +02:00