Spaces:
Running
Running
File size: 876 Bytes
5f07a23 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
images: {
domains: ['localhost'],
},
// Ensure that Webpack handles the canvas properly
webpack: (config) => {
// Add any necessary webpack configurations here
return config;
},
// Development configuration
experimental: {
// Disable experimental features that might cause issues
turbo: false,
// Enable more stable features
esmExternals: true,
// Improve module resolution
modularizeImports: {
'@material-ui/core/': {
transform: '@material-ui/core/{{member}}'
},
'@material-ui/icons/': {
transform: '@material-ui/icons/{{member}}'
}
}
},
api: {
bodyParser: {
sizeLimit: '10mb' // Increase the size limit to 10MB
}
}
};
module.exports = nextConfig; |