Skip to content

Deploy NUS Digital Twin

NUS Digital Twin is deployed on Vercel. A deployment preview is created for every branch and pull request created in the main repository.

Some configuration is required before the application can be deployed.

Ensure the required environment variables are entered into the deployment configuration. The two required environment variables are PUBLIC_CESIUM_TOKEN and PUBLIC_MAPBOX_TOKEN. See Environment Variables for full details.

The application uses yarn v1 as its package manager. The build command used is yarn run build, and the build folder is dist.

You can also deploy your own copy of NUS Digital Twin on your preferred deployment service, as long as server-side rendering+ is supported. Refer to the Astro Deployment Guide for complete details.

+Server-side rendering is required to serve a live API for NUS Digital Twin.