gemini-3d-drawing / next.config.js
Trudy's picture
Initial commit with proper LFS tracking
5f07a23
raw
history blame contribute delete
876 Bytes
/** @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;