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 仓库均未动(用户裁定「系统不动」)
This commit is contained in:
zhangxiang committed 2026-12-02 10:10:09 +08:00
1 parent 831cfccdd2
commit 901e1025a8
11 files changed
+3606 -1

No files matched your search

+12
View File
@@ -102,6 +102,18 @@ const nextConfig = {
httpAgentOptions: {
keepAlive: true,
},
async rewrites() {
return [
// 睿视 NovaVis landing 入口(2026-12-02 从 novavis-authority/landing **原样**迁入
// public/novavis/,内容零修改):源站按目录默认文档约定服务(https://novavis.p.novalon.cn/),
// Next 的 public 文件层不做目录 → index.html 补全(实测 /novavis/ 308 → /novavis → 404),
// 故入口用 rewrite 补齐。资产绝对路径(/css/style.css、/js/main.js、/assets/*、
// /images/logos/*)已按同名落 public 根,与源站 URL 语义一致、无需改写。
// landing 零内联脚本(唯一 script 为同源 /js/main.js)+ 4 处内联 style 属性,
// 生产 CSP(script-src 'self' + style-src 'self' 'unsafe-inline')实测放行。
{ source: '/novavis', destination: '/novavis/index.html' },
];
},
async headers() {
return [
{