Works on sentry config

parent 44b0806d
......@@ -38,14 +38,14 @@ interface IInetAddress {
address: string;
}
if (process.env.NODE_ENV === 'production') {
sentryInit({
dsn: process.env.SENTRY_DSN,
integrations: [
new Integrations.OnUncaughtException(), new Integrations.OnUnhandledRejection(),
],
});
}
sentryInit({
dsn: process.env.SENTRY_DSN,
integrations: [
new Integrations.OnUncaughtException(), new Integrations.OnUnhandledRejection(),
],
enabled: process.env.NODE_ENV === 'production',
debug: true,
});
(<IGlobal>global).DAO = {
AssetDAO,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment