12 lines
291 B
JavaScript
12 lines
291 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
esmExternals: 'loose'
|
|
},
|
|
webpack: (config) => {
|
|
config.externals = [...config.externals, { canvas: "canvas" }]; // required to make pdfjs work
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |