Closed ridoo closed 1 year ago
I confirm the issue. I had the same issue with an enviroment I'm working. I opened the issue #24
Well, you are right .. did not spot that the generated js chunks are put under dist/js<chunkfilename>
instead of dist/js/<chunkfilename>
.
For now, I agree to leave the chunks path with a single slash would be ok. However, maybe it would be better to see joining paths better solved in the MapStore2 buildConfig in the end.
I will have a look later and push an update to the PR
did not see PR #25. feel free to close this one, if you prefer the other.
Ok, so I'd:
We both can test if the changes solve the problem at all. I'll mention you in the merge commit of #25 in any case.
Thank you for contribution. :heart:
Apps will get compiled a wrong js path which has two trailing slashes. Environments, which do not collapse these (as nginx does for example) will return an
HTTP 404
. This is true for example, when running GeoNode/Django viapython manage.py runserver
.The index.js provides a
jsPath
which has already trailing slash. However, this change just ensures that thejsPath
has a trailing slash and passes it right way through without adding further slashes.Update: It seems that the trailing slash is completely unnecessary so I removed it