Commit Graph
9 Commits
Author SHA1 Message Date
zhangxiang e51940247b fix(dev): CSP 仅在开发模式放行 unsafe-eval——消除 React dev 控制台报错
React 在开发模式需要 eval()(DevTools 调用栈重建),而应用 CSP 由
next.config 统一下发且无 unsafe-eval ⇒ dev 下每页控制台报
「eval() is not supported in this environment」。
生产 React 从不使用 eval ⇒ scriptSrcExtra 仅在 NODE_ENV !== production
(即 next dev)时追加,生产头部与此前逐字节一致(双环境实测:
production 不含 / development 含)。
2026-12-02 21:25:45 +08:00
zhangxiang 901e1025a8 feat(novavis): 睿视 landing 原样迁入官网 public(独立站拆分 Phase 0)
- novavis-authority/landing → public/{novavis/index.html,assets,css,js,images/logos},
  内容零修改;资产绝对路径按源站 URL 语义落 public 根(命名空间冲突检查全空闲)
- next.config 加一条 rewrite:/novavis → /novavis/index.html(Next public 层
  不做目录默认文档补全,实测 /novavis/ 308→/novavis→404)
- lint-staged glob 改 !(public)/**——landing 的 main.js 是迁移原件(「不作修改」),
  其 6 处既有 no-unused-vars 不属本仓门禁面
- 验证:与线上源站 novavis.p.novalon.cn 逐字段一致(title/h1/h2/CTA/CSS/背景/图片数),
  4 张信创 logo 为懒加载时序假象,服务端两侧全 200;生产 CSP 实测放行,零内联脚本
- 授权边界:内测标识、导航外链、novavis-authority 仓库均未动(用户裁定「系统不动」)
2026-12-02 10:10:09 +08:00
zhangxiang a0328a623f chore(qa): 验收台账与证据入库 + 构建/部署配置同步
- docs/acceptance/qa-tracker.md:跨周期缺陷单一真源台账(§7=第五轮)。
- 周期 1/2 + iPhone SE/axe 验收证据目录、ACCEPTANCE_REVIEW 快照入库。
- 同步 README/CONTEXT/CLAUDE/DESIGN/testing/deployment/lessons-learned 口径;
  next.config/Dockerfile/nginx/Jenkinsfile/docker-compose/sentry/prisma 对齐
  standalone 产物装配与部署形态。
2026-09-28 10:48:09 +08:00
zhangxiang b65ddd1ff7 fix(a11y): 无障碍与 lint 修复(对比度/alt 属性/触控目标收窄)+ Geist 本地字体系统 2026-08-31 12:03:32 +08:00
zhangxiang 30924a2887 fix(csp): allow googletagmanager in img/connect sources
Align Next.js response CSP with Nginx so GTM conversion pixels are not
blocked by the intersection of duplicate CSP headers.
2026-08-18 13:08:22 +08:00
zhangxiang 628a0f1a2b fix: align startup copy with 2026 founding and deploy hybrid rendering
- Replace fabricated 12-year/500+/8+ team experience claims with
  2026 founding, first-client co-creation, professional team wording
- Remove fake case studies and unverified certifications from seeds,
  cases page, products and ERP upgrade page
- Enable Next.js standalone output and production hybrid deployment
  (Dockerfile.prod, docker-compose.server.yml, Nginx nextjs upstream)
- Add linux-musl Prisma engine target and production crypto key build
- Sync production CMS database with cleaned seed content
2026-08-17 20:21:39 +08:00
zhangxiang a995f40eae chore: add CSP/Permissions-Policy security headers and update production env vars
- Add Content-Security-Policy and Permissions-Policy headers to nginx config
- Add same headers to next.config.mjs for dev/preview mode
- Add Referrer-Policy to next.config.mjs (was only in nginx)
- Generate production JWT/CMS secrets via openssl rand -base64 64
- Update README mark production env/security header task as complete
2026-07-31 22:36:12 +08:00
张翔 c9de806109 chore(config): 更新项目构建与测试配置
- 升级 Next.js 配置,移除 webpackBuildWorker 实验特性
- 更新 Tailwind 设计令牌系统,对齐新品牌色与字体
- 配置 TypeScript strict 模式 (noUncheckedIndexedAccess)
- 更新 ESLint 规则与 Jest 测试配置
- 添加 prisma.config.ts 数据库配置
2026-07-07 06:51:48 +08:00
张翔 8840c4398a feat: downgrade tech stack to stable versions and integrate GA4 error monitoring
- Downgrade Next.js 16→14.2, React 19→18.3, Tailwind 4→3.4
- Add comprehensive GA4 error monitoring system
- Create Jenkins CI/CD pipeline with quality gates
- Fix build issues: ESLint, SWC conflict, config format
- Add documentation for deployment and error tracking
2026-05-12 12:45:18 +08:00