modified: next.config.js
modified: src/app/api/mobile/forum/[id]/preview-report-comment/route.ts
### No Issue
26 lines
598 B
JavaScript
26 lines
598 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
experimental: {
|
|
serverActions: true,
|
|
serverComponentsExternalPackages: ['@prisma/client'],
|
|
},
|
|
output: "standalone",
|
|
staticPageGenerationTimeout: 180, // tingkatkan menjadi 3 menit
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
if (isServer) {
|
|
config.externals = config.externals || [];
|
|
config.externals.push('@prisma/client');
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|