You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Use a custom plugins configuration file with:
*
* ConfigUtils.setLocalConfigurationFile('localConfig.json');
*/
ConfigUtils.setLocalConfigurationFile('MapStore2/web/client/localConfig.json');
However, after copying the contents of ./MapStore2/web/client/localConfig.json to localConfig.json and deleting the source file (just to make sure that the configuration isn't loaded in 2 places), I find that, indeed, the localConfig.json file is loaded via explicit path in at least one additional place: https://github.com/geosolutions-it/MapStore2/blob/master/web/client/jsapi/MapStore2.js
Is this a bug?
Because if I were to use my own localConfig.json file, then the app would load 2 potentially conflicting config files...
On another note. What exactly does this configuration file actually do? I see mention of CORS. Is this where we provide a list of allowable origins for a CORS whitelist? This also looks like the place where I would want to specify endpoints to my own data.
If these are correct then I definitely would like to move these files from the submodule to the root of my project. And I definitely WOULDN'T like an older copy of this file loaded for some other reason in the application.
This looks like it could be related to issue #3688
The text was updated successfully, but these errors were encountered:
Good Morning @zachsa, could you please use the mailing lists for asking questions and discuss with the developers?
We usually open an issue on github only after we have identified a bug / needed improvement, and this usually happens after some discussion on the mailing lists.
Thanks
After creating a standard project, and looking at
app.jsx
(https://github.com/geosolutions-it/MapStore2/blob/master/project/standard/templates/js/app.jsx), there are instructions on using custom configuration files:However, after copying the contents of
./MapStore2/web/client/localConfig.json
tolocalConfig.json
and deleting the source file (just to make sure that the configuration isn't loaded in 2 places), I find that, indeed, thelocalConfig.json
file is loaded via explicit path in at least one additional place: https://github.com/geosolutions-it/MapStore2/blob/master/web/client/jsapi/MapStore2.jsIs this a bug?
Because if I were to use my own
localConfig.json
file, then the app would load 2 potentially conflicting config files...On another note. What exactly does this configuration file actually do? I see mention of CORS. Is this where we provide a list of allowable origins for a CORS whitelist? This also looks like the place where I would want to specify endpoints to my own data.
If these are correct then I definitely would like to move these files from the submodule to the root of my project. And I definitely WOULDN'T like an older copy of this file loaded for some other reason in the application.
This looks like it could be related to issue #3688
The text was updated successfully, but these errors were encountered: