this might help with the memory issues..??

This commit is contained in:
Lee 2024-10-09 17:27:37 +01:00
parent d0e4e1553b
commit 1faf896c08
8 changed files with 4 additions and 28 deletions

BIN
bun.lockb

Binary file not shown.

@ -14,5 +14,5 @@
}
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist"]
}

@ -54,8 +54,5 @@
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"trigger.dev": {
"endpointId": "scoresaber-reloaded-KB0Z"
}
}

@ -6,7 +6,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
tracesSampleRate: 1,
tracesSampleRate: 0.1,
debug: false,
enabled: process.env.NODE_ENV === "production",
});

@ -7,7 +7,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
tracesSampleRate: 1,
tracesSampleRate: 0.1,
debug: false,
enabled: process.env.NODE_ENV === "production",
});

@ -6,7 +6,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
tracesSampleRate: 1,
tracesSampleRate: 0.1,
debug: false,
enabled: process.env.NODE_ENV === "production",
});

@ -1,16 +0,0 @@
import * as Comlink from "comlink";
import { scoresaberService } from "@ssr/common/service/impl/scoresaber";
export interface WorkerApi {
getPlayerExample: typeof getPlayerExample;
}
const workerApi: WorkerApi = {
getPlayerExample: getPlayerExample,
};
async function getPlayerExample() {
return await scoresaberService.lookupPlayer("76561198449412074");
}
Comlink.expose(workerApi);

@ -1,5 +0,0 @@
import * as Comlink from "comlink";
import { WorkerApi } from "@/common/worker/worker";
export const scoresaberReloadedWorker = () =>
Comlink.wrap<WorkerApi>(new Worker(new URL("./worker.ts", import.meta.url)));