Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 576 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 576 Bytes

mobile-nx

开发指南

环境配置

需要Node.js v22+。

安装npm依赖(仅需正确运行一次):

npm i

请在vscode中安装Prettier - Code formatterESLint扩展。

调试

使用npm run dev启动vite热重载服务器。

编译和部署

环境变量

编译前,需要在根目录下.env.local文件中正确设置以下环境变量:

  1. VITE_VERSION_CHECK_URL 指向版本检查latest.json地址,如https://example.com/latest.json
  2. DEPLOY_BASE 版本信息部署根路径。如https://example.com/