5feb24e 子仓库提交 git-subtree-dir: crop-x-new git-subtree-split: 5feb24e4e221308e6e146bb0fce87f1fb3e152e8
37 lines
876 B
JavaScript
37 lines
876 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
typescript: {
|
|
ignoreBuildErrors: true, // TODO: 暂时完全禁用TypeScript类型检查
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true, // TODO: 暂时禁用eslint校验错误
|
|
},
|
|
transpilePackages: ['lucide-react'],
|
|
output: 'standalone',
|
|
// 修复CSS构建问题
|
|
experimental: {
|
|
// forceSwcTransforms: true,
|
|
},
|
|
// 新的 Turbopack 配置
|
|
turbopack: {
|
|
rules: {
|
|
'*.svg': {
|
|
loaders: ['@svgr/webpack'],
|
|
as: '*.js',
|
|
},
|
|
},
|
|
},
|
|
// 解决工作区根目录问题
|
|
outputFileTracingRoot: process.cwd(),
|
|
// 添加代理配置解决CORS问题
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'https://gitea-admin-hm-smart-agri-app.dev.maimaiag.com/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |