diff --git a/index.mjs b/index.mjs index d6c3ed8..49b4720 100644 --- a/index.mjs +++ b/index.mjs @@ -1,5 +1,6 @@ import { Authorizer } from '@authorizerdev/authorizer-js'; import { Server } from '@hocuspocus/server'; +import * as Sentry from "@sentry/node"; const port = process.env.PORT || 4000; const authorizer = new Authorizer({ @@ -8,7 +9,7 @@ const authorizer = new Authorizer({ redirectURL: process.env.REDIRECT_URL || 'https://testing.discours.io', }); -const Sentry = require("@sentry/node"); + Sentry.init({ dsn: process.env.GLITCHTIP_DSN }); const startServer = async () => { @@ -129,4 +130,4 @@ process.on('uncaughtException', (error) => { }); }; -startServer(); +startServer(); \ No newline at end of file