Skip to content

Latest commit

Β 

History

History
45 lines (31 loc) Β· 1 KB

README.md

File metadata and controls

45 lines (31 loc) Β· 1 KB

Developing πŸ› οΈ

Prerequisites πŸ“‹

  1. Clone the project repository
  2. Install dependencies:
    npm install

Environment Configuration βš™οΈ

  1. Create a new .env file using the template from .env.example πŸ“„
  2. Configure the following environment variables:
    PUBLIC_CDN_URL=https://cdn.scoresaber.com
    PUBLIC_API_URL=https://scoresaber.com
    
    πŸ“ Note: CORS is currently enabled for both the CDN and the API. This configuration will be improved in future updates.

Starting the Development Server πŸ–₯️

Run the following command to start the development server with HTTPS:

npm run dev -- --https

Building for Production πŸ—οΈ

To build the app for production:

npm run build

Preview the Built App πŸ‘€

You can preview the built app using:

npm run preview

⚠️ Important: The preview command should not be used to serve ScoreSaber in production environments.