File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
import "dotenv/config" ;
5
5
import express from "express" ;
6
6
7
- import Sentry from "#~/helpers/sentry.server" ;
7
+ // import Sentry from "#~/helpers/sentry.server";
8
8
9
9
// This only exists after a production build, when this file is copied into Docker
10
- import { app as rrApp } from "./server/index" ;
10
+ import { app as rrApp } from "./build/ server/index.js " ;
11
11
12
12
const app = express ( ) ;
13
13
@@ -23,10 +23,10 @@ app.use(express.static("build/client", { maxAge: "1h" }));
23
23
/** ERROR TRACKING
24
24
Must go after route handlers
25
25
*/
26
- app . use ( Sentry . Handlers . errorHandler ( ) ) ;
26
+ // app.use(Sentry.Handlers.errorHandler());
27
27
28
28
const errorHandler = ( error ) => {
29
- Sentry . captureException ( error ) ;
29
+ // Sentry.captureException(error);
30
30
if ( error instanceof Error ) {
31
31
console . log ( "ERROR" , error . message , error . stack ) ;
32
32
} else if ( typeof error === "string" ) {
You can’t perform that action at this time.
0 commit comments