diff --git a/apps/frontend/.eslintrc.json b/apps/frontend/.eslintrc.json index 3722418..c66eb40 100644 --- a/apps/frontend/.eslintrc.json +++ b/apps/frontend/.eslintrc.json @@ -1,3 +1,8 @@ { - "extends": ["next/core-web-vitals", "next/typescript"] + "extends": ["next/core-web-vitals", "next/typescript"], + "rules": { + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-empty-object-type": "off", + "@typescript-eslint/no-unused-expressions": "off" + } } diff --git a/apps/frontend/next.config.mjs b/apps/frontend/next.config.mjs index 9d87b4d..e6a6092 100644 --- a/apps/frontend/next.config.mjs +++ b/apps/frontend/next.config.mjs @@ -4,9 +4,6 @@ import { format } from "@formkit/tempo"; /** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", - experimental: { - webpackMemoryOptimizations: true, - }, images: { remotePatterns: [ { @@ -35,22 +32,24 @@ const nextConfig = { }, }; -export default withSentryConfig(nextConfig, { - org: "scoresaber-reloaded", - project: "frontend", - sentryUrl: "https://glitchtip.fascinated.cc/", - silent: !process.env.CI, - reactComponentAnnotation: { - enabled: true, - }, - tunnelRoute: "/monitoring", - hideSourceMaps: true, - disableLogger: true, - sourcemaps: { - disable: true, - }, - release: { - create: false, - finalize: false, - }, -}); +export default nextConfig; + +// export default withSentryConfig(nextConfig, { +// org: "scoresaber-reloaded", +// project: "frontend", +// sentryUrl: "https://glitchtip.fascinated.cc/", +// silent: !process.env.CI, +// reactComponentAnnotation: { +// enabled: true, +// }, +// tunnelRoute: "/monitoring", +// hideSourceMaps: true, +// disableLogger: true, +// sourcemaps: { +// disable: true, +// }, +// release: { +// create: false, +// finalize: false, +// }, +// }); diff --git a/apps/frontend/src/app/(pages)/player/[...slug]/page.tsx b/apps/frontend/src/app/(pages)/player/[...slug]/page.tsx index 3781990..72ced3e 100644 --- a/apps/frontend/src/app/(pages)/player/[...slug]/page.tsx +++ b/apps/frontend/src/app/(pages)/player/[...slug]/page.tsx @@ -38,7 +38,7 @@ const getPlayerData = cache(async ({ params }: Props, fetchScores: boolean = tru const page = parseInt(slug[2]) || 1; // The page number const search = (slug[3] as string) || ""; // The search query - const player = (await scoresaberService.lookupPlayer(id, false))?.player; + const player = (await scoresaberService.lookupPlayer(id))?.player; let scores: ScoreSaberPlayerScoresPageToken | undefined; if (fetchScores) { scores = await scoresaberService.lookupPlayerScores({ diff --git a/apps/frontend/src/common/player-utils.ts b/apps/frontend/src/common/player-utils.ts index 483e3a2..423524f 100644 --- a/apps/frontend/src/common/player-utils.ts +++ b/apps/frontend/src/common/player-utils.ts @@ -90,7 +90,7 @@ export async function trackScoreSaberPlayer(dateToday: Date, foundPlayer: IPlaye io && (await io.logger.info(`Updating statistics for ${foundPlayer.id}...`)); // Lookup player data from the ScoreSaber service - const response = await scoresaberService.lookupPlayer(foundPlayer.id, true); + const response = await scoresaberService.lookupPlayer(foundPlayer.id); if (response == undefined) { io && (await io.logger.warn(`Player ${foundPlayer.id} not found on ScoreSaber`)); return; diff --git a/apps/frontend/tsconfig.json b/apps/frontend/tsconfig.json index e3d74ca..728e860 100644 --- a/apps/frontend/tsconfig.json +++ b/apps/frontend/tsconfig.json @@ -11,7 +11,7 @@ "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "bundler", + "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/common/package.json b/packages/common/package.json deleted file mode 100644 index 05d0382..0000000 --- a/packages/common/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "common", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC" -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a45a0c3..2c2d638 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -163,8 +163,6 @@ importers: specifier: ^5 version: 5.6.2 - packages/common: {} - packages: '@alloc/quick-lru@5.2.0':