Currently, we have a few places where we are using MapLibre packages hosted on unpkg.com. While this is perfectly fine for prototyping and testing, for the production environment this could have undesirable effects.
Some of these are:
unpkg.com could go down and indirectly take down / block page loads
we cannot optimise or control what is coming in from unpkg.com
What
Change
unpkg.com
hosted CSS files to use self-hosted CSS files.Instances:
Why
Currently, we have a few places where we are using MapLibre packages hosted on
unpkg.com
. While this is perfectly fine for prototyping and testing, for the production environment this could have undesirable effects.Some of these are:
These issues are not speculative - this has happened in the past: https://news.ycombinator.com/item?id=14111499