File size: 443 Bytes
ec9f00b
 
 
0d77050
09431f4
0ad97e0
 
 
 
 
 
ec9f00b
0ad97e0
ec9f00b
0ad97e0
ec9f00b
0ad97e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    serverActions: { bodySizeLimit: '500mb' },
    serverComponentsExternalPackages: ['pdf-lib', 'pdf2pic', 'mammoth', 'mongodb', 'pdfjs-dist']
  },
  webpack: (config) => {
    config.resolve = config.resolve || {}
    config.resolve.alias = {
      ...(config.resolve.alias || {}),
      canvas: false
    }
    return config
  }
}

module.exports = nextConfig