1 Star 0 Fork 0

jiuseng/aipan-netdisk-search

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
next.config.js 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
lei 提交于 2024-12-15 15:07 . test cloudflare pages deploy
/** @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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jiuseng/aipan-netdisk-search.git
[email protected]:jiuseng/aipan-netdisk-search.git
jiuseng
aipan-netdisk-search
aipan-netdisk-search
master

搜索帮助