- Adds documentdb and cosmosdb to CI test matrix - Adds missing generateDatabaseAdapter configs - Adjust generateDatabaseAdapter firestore config to make it pure to the compatibilityOptions we provide as an export Creating as draft because I expect a few tests to fail based on previous comments. --------- Co-authored-by: Sasha <64744993+r1tsuu@users.noreply.github.com>
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import type { Payload } from 'payload'
|
|
|
|
export const mongooseList = ['cosmosdb', 'documentdb', 'firestore', 'mongodb']
|
|
|
|
export function isMongoose(_payload?: Payload) {
|
|
return _payload?.db?.name === 'mongoose' || mongooseList.includes(process.env.PAYLOAD_DATABASE)
|
|
}
|