terrastories
terrastories copied to clipboard
[WIP] Use pmtiles with maplibre / streamlined dev & install setup
Submitting this as a PR so I can leave comments.
When running bin/setup
on this branch for the first time (without any pre-existing Docker services or changes to the files), I get some CSP and fetch errors relating to the map in React and the CMS pages that have a map embed:
Refused to connect to 'http://rudodev:3000/map/terrastories-map/style.json' because it violates the following Content Security Policy directive: "connect-src 'self' https: mapbox: http://localhost:8080 http://localhost:3000 http://localhost:3035 ws://localhost:3035".
Map.jsx:124 Refused to connect to 'http://rudodev:3000/map/terrastories-map/style.json' because it violates the document's Content Security Policy.
Map.jsx:124 Error: Failed to fetch
at maplibre-gl.js:31:1