Added sentry and dev environment warning baner
This commit is contained in:
@@ -18,4 +18,8 @@ AUTH_END_SESSION_URI=
|
||||
# SERVER SETTINGS
|
||||
SERVER_PORT=3000
|
||||
CLIENT_URL= # This is whatever URL the client web app is served on
|
||||
CLIENT_DOMAIN= #whatever.com
|
||||
CLIENT_DOMAIN= #whatever.com
|
||||
|
||||
# Glitchtip
|
||||
GLITCHTIP_DSN=
|
||||
DISABLE_GLITCHTIP= # true/false
|
||||
930
api/package-lock.json
generated
930
api/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,9 +9,10 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"dev": "tsc && tsc-alias && node ./built/api/src/index.js",
|
||||
"build" : "tsc && tsc-alias"
|
||||
"build": "tsc && tsc-alias"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/node": "^10.27.0",
|
||||
"connect-sqlite3": "^0.9.16",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^17.2.1",
|
||||
|
||||
@@ -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