Skip to content

Commit 31ec988

Browse files
committed
chore: add import payload-auditor for payload-config in dev environment
1 parent 1b66e99 commit 31ec988

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

dev/payload.config.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import { buildConfig } from 'payload';
55
import { fileURLToPath } from 'node:url';
66
import { media } from 'collections/Media.js';
77
import { users } from 'collections/Users.js';
8+
// import { auditorPlugin } from 'payload-auditor';
89
import { mongooseAdapter } from '@payloadcms/db-mongodb';
910
import { lexicalEditor } from '@payloadcms/richtext-lexical';
1011

11-
import { auditorPlugin } from '../src/index.js';
1212
// import { auditorPlugin } from './../dist/index.js';
13+
import { auditorPlugin } from '../src/index.js';
1314
import { testEmailAdapter } from './helpers/testEmailAdapter.js';
1415

1516
const filename = fileURLToPath(import.meta.url);
@@ -30,6 +31,16 @@ export default buildConfig({
3031
auditorPlugin({
3132
automation: { logCleanup: { cronTime: '*/1 * * * *', queueName: 'test', olderThan: 30000 } },
3233
collection: {
34+
configureRootCollection(defaults) {
35+
return {
36+
...defaults,
37+
slug: 'some-name',
38+
labels: {
39+
singular: 'some-name',
40+
plural: 'some-names',
41+
},
42+
};
43+
},
3344
trackCollections: [
3445
{
3546
slug: 'media',

0 commit comments

Comments
 (0)