Drop @sentry/node (Sentry support) - untested and unused

This commit is contained in:
Rory&
2025-09-29 21:28:06 +02:00
parent 3a0bded7f2
commit 0c3d8a792f
14 changed files with 3 additions and 210 deletions

View File

@@ -28,7 +28,7 @@ import * as Webrtc from "@spacebar/webrtc";
import { CDNServer } from "@spacebar/cdn";
import express from "express";
import { green, bold } from "picocolors";
import { Config, initDatabase, Sentry } from "@spacebar/util";
import { Config, initDatabase } from "@spacebar/util";
const app = express();
const server = http.createServer();
@@ -53,13 +53,11 @@ process.on("SIGTERM", async () => {
await api.stop();
await webrtc.stop();
server.close();
Sentry.close();
});
async function main() {
await initDatabase();
await Config.init();
await Sentry.init(app);
const logRequests = process.env["LOG_REQUESTS"] != undefined;
if (logRequests) {
@@ -89,8 +87,6 @@ async function main() {
webrtc.start(),
]);
Sentry.errorHandler(app);
console.log(`[Server] ${green(`Listening on port ${bold(port)}`)}`);
}