-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
web2的api地址有两处使用了硬编码
- UrlPrefix https://github.com/SDUOJ/sduoj-web2/blob/master/src/Config/constValue.ts#L3
- apiAddress https://github.com/SDUOJ/sduoj-web2/blob/master/src/Utils/API/apiAddress.ts#L11-L14
感觉可以这样改:
- 目测这两个变量是有相关性的,可以放在同一个文件里
- 生产环境可以留空,或者从配置文件中读取(记得最初版本是分别针对development和production各有一个配置文件,然后从对应文件中读,maybe)
但是,实践中全置空似乎会影响gateway的转发
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working