2026-03-12 20:02:25 -05:00
|
|
|
/** @type {import("next").NextConfig} */
|
|
|
|
|
const nextConfig = {
|
|
|
|
|
output: "standalone",
|
|
|
|
|
serverExternalPackages: ["@prisma/client", "prisma"],
|
2026-03-12 20:27:11 -05:00
|
|
|
webpack: (config, { isServer }) => {
|
|
|
|
|
if (isServer) {
|
|
|
|
|
// Ensure Prisma is never bundled by webpack
|
|
|
|
|
const existingExternals = Array.isArray(config.externals) ? config.externals : [];
|
|
|
|
|
config.externals = [...existingExternals, '@prisma/client', 'prisma'];
|
|
|
|
|
}
|
|
|
|
|
return config;
|
|
|
|
|
},
|
2026-03-12 20:02:25 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|