@lark-apaas/coding-template-vite-react 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-vite-react",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Vite + React client template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": ["template", "hooks"],
@@ -7,8 +7,11 @@ OUTPUT_RESOURCE="$ROOT/dist/output_resource"
7
7
  OUTPUT_STATIC="$ROOT/dist/output_static"
8
8
 
9
9
  # 映射平台环境变量到 preset 期望的变量名
10
- export CLIENT_BASE_PATH="${MCLAW_APP_ID:+/app/$MCLAW_APP_ID}"
11
- export ASSETS_CDN_PATH="${MCLAW_CDN_DOMAIN:-/}"
10
+ # MIAODA_APP_ID → /app/<appId> 作为客户端 base path
11
+ # MIAODA_RESOURCE_CDN_PREFIX → assets (JS/CSS) 的 CDN 前缀
12
+ # CLI 注入约定见 miaoda-cli src/services/deploy/modern/atoms/build.ts
13
+ export CLIENT_BASE_PATH="${MIAODA_APP_ID:+/app/$MIAODA_APP_ID}"
14
+ export ASSETS_CDN_PATH="${MIAODA_RESOURCE_CDN_PREFIX:-/}"
12
15
  export NODE_ENV="${NODE_ENV:-production}"
13
16
 
14
17
  # 清理