fix: bypass Next.js css loader crash during build by isolating @mintel/payload-ai server imports
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m1s
Build & Deploy / 🏗️ Build (push) Failing after 15s
Build & Deploy / 🚀 Deploy (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:
2026-03-03 15:30:41 +01:00
parent 546b8ee72b
commit db31f06bc0
5 changed files with 189 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
import type { CollectionConfig } from "payload";
import path from "path";
import { fileURLToPath } from "url";
import { replicateMediaHandler } from "@mintel/payload-ai";
import { replicateMediaHandler } from "@mintel/payload-ai/endpoints/replicateMediaEndpoint.js";
const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);