feat: register payloadChatPlugin from @mintel/payload-ai in Payload CMS config
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🏗️ Build (push) Failing after 17m52s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🏗️ Build (push) Failing after 17m52s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
This commit is contained in:
@@ -22,6 +22,7 @@ import { CrmContacts } from "./src/payload/collections/CrmContacts";
|
|||||||
import { CrmInteractions } from "./src/payload/collections/CrmInteractions";
|
import { CrmInteractions } from "./src/payload/collections/CrmInteractions";
|
||||||
import { CrmTopics } from "./src/payload/collections/CrmTopics";
|
import { CrmTopics } from "./src/payload/collections/CrmTopics";
|
||||||
import { Projects } from "./src/payload/collections/Projects";
|
import { Projects } from "./src/payload/collections/Projects";
|
||||||
|
import { payloadChatPlugin } from "@mintel/payload-ai";
|
||||||
|
|
||||||
const filename = fileURLToPath(import.meta.url);
|
const filename = fileURLToPath(import.meta.url);
|
||||||
const dirname = path.dirname(filename);
|
const dirname = path.dirname(filename);
|
||||||
@@ -84,25 +85,29 @@ export default buildConfig({
|
|||||||
plugins: [
|
plugins: [
|
||||||
...(process.env.S3_ENDPOINT
|
...(process.env.S3_ENDPOINT
|
||||||
? [
|
? [
|
||||||
s3Storage({
|
s3Storage({
|
||||||
collections: {
|
collections: {
|
||||||
media: {
|
media: {
|
||||||
prefix: `${process.env.S3_PREFIX || "mintel-me"}/media`,
|
prefix: `${process.env.S3_PREFIX || "mintel-me"}/media`,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
bucket: process.env.S3_BUCKET || "",
|
},
|
||||||
config: {
|
bucket: process.env.S3_BUCKET || "",
|
||||||
credentials: {
|
config: {
|
||||||
accessKeyId: process.env.S3_ACCESS_KEY || "",
|
credentials: {
|
||||||
secretAccessKey: process.env.S3_SECRET_KEY || "",
|
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,
|
|
||||||
},
|
},
|
||||||
}),
|
region: process.env.S3_REGION || "fsn1",
|
||||||
]
|
endpoint: process.env.S3_ENDPOINT,
|
||||||
|
forcePathStyle: true,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
]
|
||||||
: []),
|
: []),
|
||||||
|
payloadChatPlugin({
|
||||||
|
enabled: true,
|
||||||
|
mcpServers: [],
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
endpoints: [
|
endpoints: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user