#7066·ice

ice.config.mts 中 publicPath 引入环境变量打包结果不对

Author: jht-llhyCreated Mar 26, 2025Updated Jan 5, 2026
Labelsbug

Describe the bug

我在ice.config.mts 中 写的publicPath: process.env.ICE_PUBLIC_PATH,在ice start --speedup后ice build --mode production,在打包结果中其他环境变量都正确,只有这个变量经常性的依然是develop的变量

Expected behavior

ice build --mode production时应该取.env.production文件中的值

Actual behavior

No response

Version of ice.js

@ice/app @3.4.7

Content of build.json or ice.config.mts

typescript

Additional context

No response