Adding back prod check.
This commit is contained in:
parent
f65a6171d8
commit
3dad683cb9
|
@ -46,7 +46,7 @@ app.use(auth.passport.session())
|
||||||
app.use(api.routes())
|
app.use(api.routes())
|
||||||
|
|
||||||
// sentry
|
// sentry
|
||||||
//if (env.isProd()) {
|
if (env.isProd()) {
|
||||||
Sentry.init()
|
Sentry.init()
|
||||||
|
|
||||||
app.on("error", (err, ctx) => {
|
app.on("error", (err, ctx) => {
|
||||||
|
@ -57,7 +57,7 @@ app.on("error", (err, ctx) => {
|
||||||
Sentry.captureException(err)
|
Sentry.captureException(err)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
//}
|
}
|
||||||
|
|
||||||
const server = http.createServer(app.callback())
|
const server = http.createServer(app.callback())
|
||||||
destroyable(server)
|
destroyable(server)
|
||||||
|
|
Loading…
Reference in New Issue