Fix APP__ env prefix so .env database URL is honored.
Figment was prefixed with APP_, so APP__DATABASE__URL never mapped
to database.url and the server kept logging in as the default app
role. Also walk up to the workspace .env and log a redacted DSN.
@@ -44,4 +44,11 @@ Vite also regenerates on dev/build if `packages/contracts/openapi.json` changes.
Default: `postgres://app:app@127.0.0.1:5432/app`
Override with `APP__DATABASE__URL` or `config/local.toml` (gitignored).
That user only exists if you start the bundled compose file. For a local cluster, override with `APP__DATABASE__URL` (two underscores after `APP`) or `config/local.toml`: