Skip to content

ScoreSaber/scoresaber-frontend

Repository files navigation

Developing

Once you've cloned the project and installed dependencies with npm install (or pnpm install or yarn), create a new .env file using the template from .env.example CORS is currently enabled for both the CDN and the API so your .env should look a little like this until we find a better solution in the future

PUBLIC_CDN_URL=https://cdn.scoresaber.com
PUBLIC_API_URL=https://scoresaber.com

To start a development server:

npm run dev -- --https

Building

npm run build

You can preview the built app with npm run preview. This should not be used to serve ScoreSaber in production.