airgradienthq / map

Other
8 stars 2 forks source link

Add config loading from server side config file #13

Closed TomAdam closed 1 year ago

TomAdam commented 1 year ago

This PR adds a mechanism to load config from /config.json on the server. This will allow keys and other environment specific configuration to form a part of the build and release process of the production application while still supporting the community to develop locally. If the file is missing it throws an error and halts the application bootstrap. This is visible in dev tools but could be improved if required.

Note that a config is required for local development and I have updated the readme with instructions.