Skip to main content
When you connect an environment, the dashboard suggests names based on the database name. A name that would start with a digit or with UNKEY gets a DB_ prefix. For a database named orders: Every URL verifies TLS: Postgres and Neki URLs use sslmode=verify-full, and Vitess URLs set rejectUnauthorized. You can change the names before you save. A name must:
  • follow the same rules as any environment variable key.
  • not be UNKEY or start with UNKEY_. Those are reserved for Unkey.
  • not end with _HOST. App connections use those names.
  • not already be used in the environment, by one of your variables or by another connection.

Read-only replica URL

Turn on the read-only URL to send reads to the branch’s replicas. Each deployment then gets one more credential, with read access only. On Postgres and Neki, it connects directly on port 5432, not through PgBouncer. To turn it on, open Manage connection for the database’s connection to your app, from the app’s Connections page or the database’s page. In the environment’s Read-only URL row, click Add. To turn it off, click Remove. Like connecting, this redeploys live production. Turning it off doesn’t redeploy: running deployments keep the URL until they stop. If production’s branch has no replica the URL can reach, its row shows Set up in PlanetScale instead, which opens the branch in PlanetScale. You can turn it on only when the branch has a replica the URL can reach:
Last modified on November 27, 2026