debug: import Sentry,not require
This commit is contained in:
parent
65c9801174
commit
31acd37a64
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user