deepsite-ai-coding / next.config.mjs
likhonsheikh's picture
Upload next.config.mjs with huggingface_hub
e7b98f7 verified
raw
history blame contribute delete
526 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
},
},
webpack: (config, { isServer }) => {
// Add Monaco Editor webpack configuration
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
module: false,
path: false,
};
}
return config;
},
}
export default nextConfig