Database
Neon
Run the application database on Neon.
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 Neon
Select the branch and database
Open Neon. Create a project and select the target branch and database.
Copy the migration URL
Open Connect and copy a non-pooled URL for migrations. Choose a runtime connection compatible with prepared statements.
Provider documentation · Neon connections
Configure the application
Set these values in the server environment for the migration. Use postgres as the database dialect.
| Connection setting | Server variable |
|---|---|
| Postgres URL | DATABASE_URL |
| Database dialect | DATABASE_DIALECT |
Run pnpm db:migrate against the target database. Configure the application with the runtime connection for your deployment.
Verify
- Verify the migration completed successfully.
- Start the application and open
/adminwith an administrator account.
Troubleshooting
DATABASE_URL is required when DATABASE_ADAPTER=postgres
The connection string is empty. Set DATABASE_URL.