EdSummariser / ingestion_js /next.config.js
LiamKhoaLe's picture
chore: ignore Next.js .next and untrack cached build artifacts
0d77050
/** @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