代码拉取完成,页面将自动刷新
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
unoptimized: true,
domains: ['cloudflare-ipfs.com'],
},
webpack: (config, { dev, isServer }) => {
if (!dev) {
config.optimization = {
...config.optimization,
minimize: true,
moduleIds: 'deterministic',
splitChunks: {
chunks: 'all',
minSize: 20000,
maxSize: 20000000,
cacheGroups: {
default: false,
vendors: false,
framework: {
chunks: 'all',
name: 'framework',
test: /(?<!node_modules.*)[\\/]node_modules[\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\/]/,
priority: 40,
enforce: true,
},
lib: {
test: /[\\/]node_modules[\\/]/,
priority: 30,
minChunks: 2,
reuseExistingChunk: true,
},
},
},
};
}
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
crypto: false,
};
}
return config;
},
compress: true,
poweredByHeader: false,
generateEtags: false,
productionBrowserSourceMaps: false,
}
module.exports = nextConfig
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。