Skip to content

Commit

Permalink
Initialize Sentry as early as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
nhitz committed Jul 26, 2024
1 parent 9885c86 commit 7b42624
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ app
await DiscoverSlider.bootstrapSliders();

const server = express();
Sentry.setupExpressErrorHandler(server);

if (settings.main.trustProxy) {
server.enable('trust proxy');
}


Sentry.setupExpressErrorHandler(server);

server.use(cookieParser());
server.use(express.json());
server.use(express.urlencoded({ extended: true }));
Expand Down

0 comments on commit 7b42624

Please sign in to comment.