Add Payload Feature Flags plugin with custom endpoints and configurations

This commit is contained in:
2025-09-12 11:45:33 +02:00
commit 453b9eac7c
41 changed files with 20187 additions and 0 deletions

21
dev/seed.ts Normal file
View File

@@ -0,0 +1,21 @@
import type { Payload } from 'payload'
import { devUser } from './helpers/credentials.js'
export const seed = async (payload: Payload) => {
const { totalDocs } = await payload.count({
collection: 'users',
where: {
email: {
equals: devUser.email,
},
},
})
if (!totalDocs) {
await payload.create({
collection: 'users',
data: devUser,
})
}
}