- Clone the project repository
- Install dependencies:
npm install
- Create a new
.env
file using the template from.env.example
📄 - Configure the following environment variables:
📝 Note: CORS is currently enabled for both the CDN and the API. This configuration will be improved in future updates.
PUBLIC_CDN_URL=https://cdn.scoresaber.com PUBLIC_API_URL=https://scoresaber.com
Run the following command to start the development server with HTTPS:
npm run dev -- --https
To build the app for production:
npm run build
You can preview the built app using:
npm run preview
⚠️ Important: The preview command should not be used to serve ScoreSaber in production environments.