diff --git a/bun.lockb b/bun.lockb index c8dc299..adc2e5b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/projects/backend/src/index.ts b/projects/backend/src/index.ts index f6b291d..a158234 100644 --- a/projects/backend/src/index.ts +++ b/projects/backend/src/index.ts @@ -21,7 +21,7 @@ import { delay } from "@ssr/common/utils/utils"; // Load .env file dotenv.config({ - logLevel: "success", + logLevel: (await Bun.file(".env").exists()) ? "success" : "warn", path: ".env", override: true, }); @@ -33,8 +33,8 @@ export const app = new Elysia(); app.use( cron({ name: "player-statistics-tracker-cron", - pattern: "1 0 * * *", // Every day at 00:01 (London time) - timezone: "Europe/London", + pattern: "1 0 * * *", // Every day at 00:01 + timezone: "Europe/London", // UTC time run: async () => { const pages = 20; // top 1000 players const cooldown = 60_000 / 250; // 250 requests per minute diff --git a/projects/website/package.json b/projects/website/package.json index 1bee849..ae7182c 100644 --- a/projects/website/package.json +++ b/projects/website/package.json @@ -35,14 +35,14 @@ "js-cookie": "^3.0.5", "ky": "^1.7.2", "lucide-react": "^0.451.0", - "next": "15.0.0-rc.0", + "next": "15.0.0-canary.186", "next-build-id": "^3.0.0", "next-themes": "^0.3.0", "node-cache": "^5.1.2", - "react": "19.0.0-rc-3edc000d-20240926", + "react": "19.0.0-rc-09111202-20241011", "react-chartjs-2": "^5.2.0", "react-countup": "^6.5.3", - "react-dom": "19.0.0-rc-3edc000d-20240926", + "react-dom": "19.0.0-rc-09111202-20241011", "react-hook-form": "^7.53.0", "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", diff --git a/projects/website/src/components/player/player-header.tsx b/projects/website/src/components/player/player-header.tsx index ae482bf..2dc8137 100644 --- a/projects/website/src/components/player/player-header.tsx +++ b/projects/website/src/components/player/player-header.tsx @@ -11,7 +11,6 @@ import PlayerTrackedStatus from "@/components/player/player-tracked-status"; import ScoreSaberPlayer from "@ssr/common/types/player/impl/scoresaber-player"; import Link from "next/link"; import { capitalizeFirstLetter } from "@/common/string-utils"; -import { normalizedRegionName } from "@ssr/common/utils/region-utils"; /** * Renders the change for a stat. diff --git a/projects/website/src/components/score/score-info.tsx b/projects/website/src/components/score/score-info.tsx index b9284d5..462e452 100644 --- a/projects/website/src/components/score/score-info.tsx +++ b/projects/website/src/components/score/score-info.tsx @@ -3,7 +3,6 @@ import { getDifficultyFromScoreSaberDifficulty } from "@/common/scoresaber-utils import FallbackLink from "@/components/fallback-link"; import Tooltip from "@/components/tooltip"; import { StarIcon } from "@heroicons/react/24/solid"; -import clsx from "clsx"; import Image from "next/image"; import { songDifficultyToColor } from "@/common/song-utils"; import Link from "next/link";