Should fix messed up import suggestions and simplifies all tsconfigs through inheritance. One main issue was that packages were inheriting `baseURL: "."` from the root tsconfig. This caused incorrect import suggestions that start with "packages/...". This PR ensures that packages do not inherit this baseURL: "." property, while ensuring the root, non-inherited tsconfig still keeps it to get tests to work (the importMap needs it)
Payload Postgres Adapter
Official Postgres adapter for Payload.
Installation
npm install @payloadcms/db-postgres
Usage
import { buildConfig } from 'payload'
import { postgresAdapter } from '@payloadcms/db-postgres'
export default buildConfig({
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
},
}),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.