Added sentry and dev environment warning baner

This commit is contained in:
2025-11-29 13:18:24 -05:00
parent 4952ed55ae
commit 1aac9d8c1a
9 changed files with 1044 additions and 41 deletions

View File

@@ -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')