+
Skip to content

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

@jht-llhy

Description

@jht-llhy

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

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载