# NianXX 官网 同一仓库包含两个前端入口: - `/`:公开官网,包含首页、关于与联系、中英文切换。 - `/platform/`:智念科技产品平台与行业应用入口。 ## 本地开发 ```bash pnpm install pnpm dev ``` 开发服务器启动后访问: - 官网:`http://localhost:5173/` - 产品平台:`http://localhost:5173/platform/` ## 构建 ```bash pnpm build pnpm preview ``` Vite 会同时生成 `dist/index.html` 与 `dist/platform/index.html`。部署时需要保证: - `/about` 等官网路径回退到 `/index.html`; - `/platform/` 回退到 `/platform/index.html`; - `/assets/` 与协议页按静态文件直接提供。 ## 鉴权说明 产品平台当前只保留原项目的前端演示登录状态,不能作为访问控制。正式保护产品入口前,需要接入后端登录、SSO 或网关鉴权。