alibaba / alibaba/ice

nodev22+版本打包时配置的production环境变量不生效走.env中默认

Open
#7,149 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

Image

Image

### Expected behavior

这是什么问题导致的呢

### Actual behavior

_No response_

### Version of ice.js

3.4.0

### Content of build.json or ice.config.mts

```TypeScript

```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing packaging with Node.js v22 or later using ice.js 3.4.0, then inspect the referenced build.json, ice.config.mts, and .env configuration. Confirm which production variable is selected during the build and consider the issue resolved when the configured production value is used instead of the .env default.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.