Skip to content

Environment Variables Reference

The full list of environment variables are provided below.

Required

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.

.env
PUBLIC_CESIUM_TOKEN='eyXXXXXXXXXXXXX'
Required

The Mapbox Access Tokens, obtained from the Mapbox Access Token Page. This access token is used to access Mapbox Static Tiles for the map.

.env
PUBLIC_MAPBOX_TOKEN='pk.eyXXXXXXXXXXXXX'

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.

.env
PUBLIC_SHOW_MAPBOX="true"

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.

.env
PUBLIC_UMAMI_WEBSITE_ID="XXXXXX-XXXX-XXXX-XXXX-XXXXXXX"

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.

.env
PUBLIC_UMAMI_API_KEY="api_XXXXXXXXXXXXXXX"

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.

.env
PUBLIC_UMAMI_API_ENDPOINT="https://api.umami.is/v1"