fix: prisma client binary cannot be found on vercel (#23772)
This commit is contained in:
1 parent
dbbf3ae2a2
commit
4ed0901957
5 files changed
+21
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user