Database
Neon
Connect Neon PostgreSQL.
Overview
Neon provides managed PostgreSQL. shipkit can use its connection string directly.
Quick start
1) Create project and database
- Sign up on Neon.
- Create a project and database in the Neon console.
2) Get the connection string
- Open Connection Details.
- Copy the Pooled connection string (recommended for production).
3) Configure environment variables
DATABASE_URL=your_neon_connection_string
DB_PROVIDER=neon4) Apply schema
pnpm db:pushOr use migrations:
pnpm db:generate
pnpm db:migrate5) Manage data
Use the Neon console, or run locally:
pnpm db:studioCustomize
Modify schema
Schema lives in src/lib/db/schema.ts. After changes, run migrations again.
Adjust connection logic
Connection logic is in src/lib/db/index.ts. Update it if you need custom pool settings.