Skip to main content
Use this flow for APIs that need persistent storage.

Goal

Provision PostgreSQL and attach it to an app as DATABASE_URL.

Create the database

Set the app variable

Next steps

Provision a database

Learn the database lifecycle.

Manage secrets

Keep credentials safe.
Last modified on July 17, 2026