Environment Variables Reference
The full list of environment variables are provided below.
PUBLIC_CESIUM_TOKEN
Section titled “PUBLIC_CESIUM_TOKEN”The Cesium Ion API token, obtained from Cesium Ion Tokens, typically a base64-encoded JWT token. This token is used to enable Cesium Ion features on the application.
PUBLIC_CESIUM_TOKEN='eyXXXXXXXXXXXXX'
PUBLIC_MAPBOX_TOKEN
Section titled “PUBLIC_MAPBOX_TOKEN”The Mapbox Access Tokens, obtained from the Mapbox Access Token Page. This access token is used to access Mapbox Static Tiles for the map.
PUBLIC_MAPBOX_TOKEN='pk.eyXXXXXXXXXXXXX'
PUBLIC_SHOW_MAPBOX
Section titled “PUBLIC_SHOW_MAPBOX”Enables Mapbox tiles in development. By default, Mapbox tiles are disabled in development mode to save on bandwidth. Set this environment variable to true
to enable Mapbox tiles in development. All other values are ignored.
PUBLIC_SHOW_MAPBOX="true"
PUBLIC_UMAMI_WEBSITE_ID
Section titled “PUBLIC_UMAMI_WEBSITE_ID”NUS Digital Twin uses Umami Cloud to track website analytics. This variable is the website ID for the NUS Digital Twin Umami instance. This environment variable is used to retrieve the analytics statistics for this site for display in the statistics modal. The website id can be obtained from the Umami dashboard on the websites tab.
PUBLIC_UMAMI_WEBSITE_ID="XXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
PUBLIC_UMAMI_API_KEY
Section titled “PUBLIC_UMAMI_API_KEY”NUS Digital Twin uses Umami Cloud to track website analytics. An API key is used to authenticate requests to the Umami API to retrieve statistics. The API key can be obtained from the Umami dashboard on the API keys tab. See Umami’s documentation for more information.
PUBLIC_UMAMI_API_KEY="api_XXXXXXXXXXXXXXX"
PUBLIC_UMAMI_API_ENDPOINT
Section titled “PUBLIC_UMAMI_API_ENDPOINT”This is the Umami API endpoint. If using Umami Cloud, it should be set to the Umami Cloud API endpoint. This variable is used to retrieve the analytics statistics for this site for display in the statistics modal.
PUBLIC_UMAMI_API_ENDPOINT="https://api.umami.is/v1"