Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 565 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 565 Bytes

Audit fields

Add createdBy and lastModifiedBy audit fields to collections and globals.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/audit-fields
  1. Add the plugin to your payload.config.ts:
/// ....
import { auditFieldsPlugin } from "@payload-bites/audit-fields";

export default buildConfig({
  // ...
  plugins: [
    // ...
    auditFieldsPlugin({
      // ...
    }),
  ],
});

Defaults

For defaults, refer to defaults.ts.

Options

For options, refer to types.ts.