Kernlift
Database

Supabase

Run the application database on Supabase.

Before you begin

An account with access to the provider and permission to edit the settings below in Kernlift.

Expected result — a migrated database that the running app can read.

Set up Supabase

Create the project

Open Supabase. Create a Postgres project and store its database password.

Copy the database connection

Open Connect and copy the direct migration URL. For IPv4-only hosts check the session pooler connection.

Provider documentation · Supabase connection modes · securing the Data API

Configure the application

Set these values in the server environment for the migration. Use postgres as the database dialect.

Connection settingServer variable
Postgres URLDATABASE_URL
Database dialectDATABASE_DIALECT

Run pnpm db:migrate against the target database. Configure the application with the runtime connection for your deployment.

Verify

  1. Verify the migration completed successfully.
  2. Start the application and open /admin with an administrator account.

Troubleshooting

DATABASE_URL is required when DATABASE_ADAPTER=postgres

The connection string is empty. Set DATABASE_URL.

Next steps

Use Postgres and Supabase