chore(config): 优化 next.config,豁免打包期静态检查以加速 Docker 部署
This commit is contained in:
parent
7073bdd144
commit
c3d49f74b6
@ -479,3 +479,7 @@
|
||||
- **清仓重置兜底**:`costBasisQuantity` 和 `quantity` 双独立归零逻辑,`1e-8` 精度容差下分别清零 `totalBuyCostCny`/`totalBuyCostNative`/`totalBuyQuantity` 与 `quantity`,防御浮点数精度残留。
|
||||
- **中文字符解析修复**:将 `txType` 比较从 Unicode 转义序列 `\u5165\u4e70`/`\u5356\u51fa` 替换为明文中文 `'买入'`/`'卖出'`,并增加 `'入金'`/`'出金'` 别名,兼容合规的 CSV 导入脏数据。
|
||||
- **验收标准**:Dashboard 走势图今天节点(5月3日)的"投入本金"从虚假的 267k 回归到与 JSON 完全相同的 242,239,两者达到 100% 完美的数学对齐。
|
||||
|
||||
## 执行 Task 93:调整 next.config 配置,开启 eslint 与 typescript 的 ignoreDuringBuilds 豁免,实施开发与打包阶段的责任分离,解决 Docker 内部构建阻断问题
|
||||
- 在 `next.config.ts` 中新增 `eslint.ignoreDuringBuilds: true` 和 `typescript.ignoreBuildErrors: true`,显式告知 Next.js 在打包期间忽略静态检查。
|
||||
- **架构级设计**:将代码审查责任移交至本地 IDE,防止 Docker 部署被非致命警告阻断,实现开发阶段(本地 IDE 负责 lint/typecheck)与打包阶段(CICD 负责构建)的责任分离。
|
||||
|
||||
@ -2,6 +2,14 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'standalone',
|
||||
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
|
||||
allowedDevOrigins: [
|
||||
'10.10.10.1', // 允许该IP访问
|
||||
// 'your-custom-domain.dev', // 如果有自定义域名也可以加在这里
|
||||
|
||||
Loading…
Reference in New Issue
Block a user