fix: prisma client binary cannot be found on vercel (#23772)

This commit is contained in:
Alex van Andel authored and GitHub committed 2025-09-11 23:18:39 +01:00
1 parent dbbf3ae2a2
commit 4ed0901957
5 files changed
+21

No files matched your search

+7
View File
@@ -1,5 +1,6 @@
const { withAxiom } = require("next-axiom");
const { withSentryConfig } = require("@sentry/nextjs");
const { PrismaPlugin } = require("@prisma/nextjs-monorepo-workaround-plugin");
const plugins = [withAxiom];
@@ -14,6 +15,12 @@ const nextConfig = {
"@calcom/prisma",
"@calcom/trpc",
],
webpack: (config, { isServer }) => {
if (isServer) {
config.plugins = [...config.plugins, new PrismaPlugin()];
}
return config;
},
async headers() {
return [
{
+1
View File
@@ -30,6 +30,7 @@
"@calcom/lib": "*",
"@calcom/prisma": "*",
"@calcom/trpc": "*",
"@prisma/nextjs-monorepo-workaround-plugin": "^6.16.1",
"@sentry/nextjs": "^9.15.0",
"bcryptjs": "^2.4.3",
"memory-cache": "^0.2.0",
+3
View File
@@ -2,6 +2,7 @@ require("dotenv").config({ path: "../../.env" });
const englishTranslation = require("./public/static/locales/en/common.json");
const { withAxiom } = require("next-axiom");
const { version } = require("./package.json");
const { PrismaPlugin } = require("@prisma/nextjs-monorepo-workaround-plugin");
const {
i18n: { locales },
} = require("./next-i18next.config");
@@ -254,6 +255,8 @@ const nextConfig = (phase) => {
})
);
config.plugins = [...config.plugins, new PrismaPlugin()];
config.externals.push("formidable");
}
+1
View File
@@ -59,6 +59,7 @@
"@hookform/resolvers": "^2.9.7",
"@next-auth/prisma-adapter": "^1.0.4",
"@next/bundle-analyzer": "^15.5.2",
"@prisma/nextjs-monorepo-workaround-plugin": "^6.16.1",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-collapsible": "^1.0.0",
"@radix-ui/react-dialog": "^1.0.4",