This further reduces the amount of dependencies installed by payload. Special thanks to @benmccann for this PR (https://github.com/bcherny/json-schema-to-typescript/pull/639) ! json-schema-to-typescript before this PR (15.0.1):  14mb, 37 dependencies json-schema-to-typescript after this PR (15.0.3):  11 MB, 14 dependencies This PR also upgrades: - console-table-printer - croner - get-tsconfig - jose - pino-pretty - ts-essentials - tsx
Payload Postgres Adapter
Vercel Postgres adapter for Payload.
Installation
npm install @payloadcms/db-vercel-postgres
Usage
Explicit Connection String
import { buildConfig } from 'payload'
import { vercelPostgresAdapter } from '@payloadcms/db-vercel-postgres'
export default buildConfig({
db: vercelPostgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
},
}),
// ...rest of config
})
Automatic Connection String Detection
Have Vercel automatically detect from environment variable (typically process.env.POSTGRES_URL)
export default buildConfig({
db: postgresAdapter(),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.