Skip to content

Commit df0d7a4

Browse files
committed
fix ci
1 parent d7aa0f1 commit df0d7a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vite.core.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ export default defineConfig({
1313
rollupOptions: {
1414
// 不再需要 external,使用原生 fetch
1515
}
16+
},
17+
define: {
18+
// SimApiVersion 由构建注入,AppVersion 留给调用方 APP 注入
19+
// 使用方式: npm run build -- --SimApiVersion=1.0.0
20+
'SimApiVersion': JSON.stringify(process.env.npm_config_SimApiVersion || '0.0.0-develop'),
1621
}
1722
})

0 commit comments

Comments
 (0)