This commit is contained in:
parent
b26021386e
commit
dac4735e52
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,6 @@ import { format } from "@formkit/tempo";
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
experimental: {
|
|
||||||
webpackMemoryOptimizations: true,
|
|
||||||
},
|
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
@ -35,22 +32,24 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withSentryConfig(nextConfig, {
|
export default nextConfig;
|
||||||
org: "scoresaber-reloaded",
|
|
||||||
project: "frontend",
|
// export default withSentryConfig(nextConfig, {
|
||||||
sentryUrl: "https://glitchtip.fascinated.cc/",
|
// org: "scoresaber-reloaded",
|
||||||
silent: !process.env.CI,
|
// project: "frontend",
|
||||||
reactComponentAnnotation: {
|
// sentryUrl: "https://glitchtip.fascinated.cc/",
|
||||||
enabled: true,
|
// silent: !process.env.CI,
|
||||||
},
|
// reactComponentAnnotation: {
|
||||||
tunnelRoute: "/monitoring",
|
// enabled: true,
|
||||||
hideSourceMaps: true,
|
// },
|
||||||
disableLogger: true,
|
// tunnelRoute: "/monitoring",
|
||||||
sourcemaps: {
|
// hideSourceMaps: true,
|
||||||
disable: true,
|
// disableLogger: true,
|
||||||
},
|
// sourcemaps: {
|
||||||
release: {
|
// disable: true,
|
||||||
create: false,
|
// },
|
||||||
finalize: false,
|
// release: {
|
||||||
},
|
// create: false,
|
||||||
});
|
// finalize: false,
|
||||||
|
// },
|
||||||
|
// });
|
||||||
|
@ -38,7 +38,7 @@ const getPlayerData = cache(async ({ params }: Props, fetchScores: boolean = tru
|
|||||||
const page = parseInt(slug[2]) || 1; // The page number
|
const page = parseInt(slug[2]) || 1; // The page number
|
||||||
const search = (slug[3] as string) || ""; // The search query
|
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;
|
let scores: ScoreSaberPlayerScoresPageToken | undefined;
|
||||||
if (fetchScores) {
|
if (fetchScores) {
|
||||||
scores = await scoresaberService.lookupPlayerScores({
|
scores = await scoresaberService.lookupPlayerScores({
|
||||||
|
@ -90,7 +90,7 @@ export async function trackScoreSaberPlayer(dateToday: Date, foundPlayer: IPlaye
|
|||||||
io && (await io.logger.info(`Updating statistics for ${foundPlayer.id}...`));
|
io && (await io.logger.info(`Updating statistics for ${foundPlayer.id}...`));
|
||||||
|
|
||||||
// Lookup player data from the ScoreSaber service
|
// 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) {
|
if (response == undefined) {
|
||||||
io && (await io.logger.warn(`Player ${foundPlayer.id} not found on ScoreSaber`));
|
io && (await io.logger.warn(`Player ${foundPlayer.id} not found on ScoreSaber`));
|
||||||
return;
|
return;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
|
@ -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"
|
|
||||||
}
|
|
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -163,8 +163,6 @@ importers:
|
|||||||
specifier: ^5
|
specifier: ^5
|
||||||
version: 5.6.2
|
version: 5.6.2
|
||||||
|
|
||||||
packages/common: {}
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@alloc/quick-lru@5.2.0':
|
'@alloc/quick-lru@5.2.0':
|
||||||
|
Reference in New Issue
Block a user