Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 如何区分线上的多个环境(生产和测试) #7043

Closed
weilun0510 opened this issue Jan 9, 2025 · 2 comments
Closed

v3 如何区分线上的多个环境(生产和测试) #7043

weilun0510 opened this issue Jan 9, 2025 · 2 comments
Labels

Comments

@weilun0510
Copy link

Describe the bug

image
看文档好像只支持开发和线上(production),无法区分线上的测试和生产

Expected behavior

可以区分线上的测试和生产

Actual behavior

No response

Version of ice.js

v3

Content of build.json or ice.config.mts

No response

Additional context

No response

@weilun0510 weilun0510 added the bug label Jan 9, 2025
@ClarkXia
Copy link
Collaborator

ClarkXia commented Jan 9, 2025

只要你的环境能够执行不同的命令就可以,比如 mode 可以通过 --mode 传多个

"build": "ice build --mode prod",
"build:test": "ice build --mode test"

@weilun0510
Copy link
Author

谢谢。其实我被“${mode} 的取值是 developmentproduction”这句话误导了。mode的值可以是其他值,如test等

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants