-
Notifications
You must be signed in to change notification settings - Fork 16
[$250] Clean up gulp config #219
Comments
Contest https://www.topcoder.com/challenges/30105886 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30105886 has been updated - it has been assigned to afrisalyp. |
1 similar comment
Contest https://www.topcoder.com/challenges/30105886 has been updated - it has been assigned to afrisalyp. |
@jmgasper
Please kindly let me know your thoughts on this |
Hmm... What does the frontend use the configs for directly? I'm wondering if we can just build new services for the frontend to call so that it doesn't have to "know about" the config at all. |
Contest https://www.topcoder.com/challenges/30105886 has been updated - the new changes has been updated for this ticket. |
Most of them are URLs. The frontend uses the URLs to call Topcoder API, to redirect to the Topcoder login page and other purposes related to Auth. So we'll move the configs to the backend and we'll create new service in the backend to fetch the configs. The frontend will get the configs at the page load. |
Yeah, I think that should be fine. It will lessen complexity, which is good. |
@jmgasper |
Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30105886 |
@afrisalyp - This line of code is causing some problems with the production CI deployment because the env variable isn't set when Gulp runs, so it's always defaulting to
dev
https://github.com/topcoder-platform/topcoder-x-ui/blob/5a75931b3a341d0c6e8d257b1d582d9eb2c9f587/gulp/ng-config.js#L13
As we dug into this further, we see that this influences what's chosen in
src/front/config.json
.Is there any reason we need
src/front/config.json
at all? Can't we just read those values directly from the environmental variables?I'd like to get this so that we don't use that config file at all, and that way we can avoid the deployment issues as well, thanks.
The text was updated successfully, but these errors were encountered: