2a180f92-c37d-4d06-a523-4063bf3b4772

This commit is contained in:
Z User committed 2026-10-28 17:10:07 +00:00
1 parent f341ba4525
commit dbcd79fbb1
5 files changed
+876 -2

No files matched your search

+9
View File
@@ -6,6 +6,15 @@ const nextConfig: NextConfig = {
ignoreBuildErrors: true,
},
reactStrictMode: false,
// Prisma client must be treated as a server-side external package — it
// must NOT be bundled into the browser/client chunks. This prevents the
// "Module not found: Can't resolve '.prisma/client/index-browser'" error
// during `next build` when Prisma is imported from server-only code.
serverExternalPackages: ["@prisma/client", "@prisma/engines"],
// Allow .prisma generated client to be resolved during build.
outputFileTracingIncludes: {
"/": ["./node_modules/.prisma/**/*", "./node_modules/@prisma/**/*"],
},
// PRD §5.6: CSP, nosniff, no-store on private files, HSTS at the proxy
async headers() {
return [