09e5653191
Without resolveAlias, Turbopack fails to resolve .prisma/client/default and creates a temporary client reference, causing the toStringTag error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
transpilePackages: ["unified", "remark-parse"],
|
|
serverExternalPackages: ["@prisma/client", "pg"],
|
|
experimental: {
|
|
turbo: {
|
|
resolveAlias: {
|
|
".prisma/client/default": "./node_modules/.prisma/client/default.js",
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|