debug: import Sentry,not require
Some checks failed
CI/CD / test (push) Successful in 7s
CI/CD / deploy (push) Failing after 22s

This commit is contained in:
Stepan Vladovskiy 2024-04-09 12:28:32 -03:00
parent 65c9801174
commit 31acd37a64

View File

@ -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 () => {