Added sentry and dev environment warning baner
This commit is contained in:
@@ -18,6 +18,16 @@ app.set('trust proxy', 1);
|
||||
|
||||
const port = process.env.SERVER_PORT;
|
||||
|
||||
//glitchtip setup
|
||||
const sentry = require('@sentry/node');
|
||||
if (!process.env.DISABLE_GLITCHTIP) {
|
||||
console.log("Glitchtip disabled AAAAAA")
|
||||
} else {
|
||||
let dsn = process.env.GLITCHTIP_DSN;
|
||||
sentry.init({ dsn: dsn });
|
||||
console.log("Glitchtip initialized");
|
||||
}
|
||||
|
||||
//session setup
|
||||
const path = require('path')
|
||||
const session = require('express-session')
|
||||
|
||||
Reference in New Issue
Block a user