From 6a6fbb6f191c94683623dd42db88a8e01036b958 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 6 Mar 2026 01:50:54 +0100 Subject: [PATCH] feat: register payloadChatPlugin from @mintel/payload-ai in Payload CMS config --- apps/web/payload.config.ts | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/apps/web/payload.config.ts b/apps/web/payload.config.ts index a0fa6fd..9fd2081 100644 --- a/apps/web/payload.config.ts +++ b/apps/web/payload.config.ts @@ -22,6 +22,7 @@ import { CrmContacts } from "./src/payload/collections/CrmContacts"; import { CrmInteractions } from "./src/payload/collections/CrmInteractions"; import { CrmTopics } from "./src/payload/collections/CrmTopics"; import { Projects } from "./src/payload/collections/Projects"; +import { payloadChatPlugin } from "@mintel/payload-ai"; const filename = fileURLToPath(import.meta.url); const dirname = path.dirname(filename); @@ -84,25 +85,29 @@ export default buildConfig({ plugins: [ ...(process.env.S3_ENDPOINT ? [ - s3Storage({ - collections: { - media: { - prefix: `${process.env.S3_PREFIX || "mintel-me"}/media`, - }, + s3Storage({ + collections: { + media: { + prefix: `${process.env.S3_PREFIX || "mintel-me"}/media`, }, - bucket: process.env.S3_BUCKET || "", - config: { - credentials: { - accessKeyId: process.env.S3_ACCESS_KEY || "", - secretAccessKey: process.env.S3_SECRET_KEY || "", - }, - region: process.env.S3_REGION || "fsn1", - endpoint: process.env.S3_ENDPOINT, - forcePathStyle: true, + }, + bucket: process.env.S3_BUCKET || "", + config: { + credentials: { + accessKeyId: process.env.S3_ACCESS_KEY || "", + secretAccessKey: process.env.S3_SECRET_KEY || "", }, - }), - ] + region: process.env.S3_REGION || "fsn1", + endpoint: process.env.S3_ENDPOINT, + forcePathStyle: true, + }, + }), + ] : []), + payloadChatPlugin({ + enabled: true, + mcpServers: [], + }), ], endpoints: [ {