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.
Deployment Configuration
Section titled “Deployment Configuration”Some configuration is required before the application can be deployed.
Set Up Environment Variables
Section titled “Set Up Environment Variables”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.
Build Command
Section titled “Build Command”The application uses yarn v1
as its package manager. The build command used is yarn run build
, and the build folder is dist
.
Other Deployment Options
Section titled “Other Deployment Options”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.