This project is just a copy of Rapid, but with all dependencies included.
It is intended for running Rapid in a sandbox kind of environment behind a corporate firewall where it won't have access to fetch resources from the CDN at runtime.
See: https://github.com/facebook/Rapid/issues/1482
The dependencies that we include are:
- id-tagging-schema
- mapillary-js
- maplibre-gl-js
- name-suggestion-index
- osm-community-index
- pannellum
- wmf-sitematrix
You would "use" this by just installing it somewhere.
> npm install @rapideditor/rapid-standalone
The /dist
folder contains a copy of Rapid that is configured to not fetch resources from the CDN.
> npm install
> npm run build
To test:
> npm run start
Visit http://127.0.0.1:8080 and verify that Rapid starts and that it doesn't use the CDN.
Please visit the main Rapid project if you want to contribute.
Rapid is available under the ISC License. See the LICENSE.md file for more details.