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

多环境 #10973

Closed
1175341729 opened this issue Sep 27, 2024 · 2 comments
Closed

多环境 #10973

1175341729 opened this issue Sep 27, 2024 · 2 comments

Comments

@1175341729
Copy link

存在开发、测试、生产环境 每个环节对应的host不一样 如何进行配置

@2betop
Copy link
Collaborator

2betop commented Sep 27, 2024

这个可以外围实现,可以考虑把环境变量放到配置里面比如 api: "${API_HOST}/api/xxx",然后后端在不同的环境下替换不同的值

@nwind nwind closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants