mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-16 19:45:33 -04:00
bump next
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import * as Sentry from "@sentry/node";
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
import * as Tracing from "@sentry/tracing";
|
||||
import "@sentry/tracing";
|
||||
|
||||
const IsomorphicSentry = () => {
|
||||
// https://docs.sentry.io/platforms/node/configuration/options/
|
||||
@@ -19,6 +18,7 @@ export const logServerError = async (error: string | Error) => {
|
||||
|
||||
// log error to sentry
|
||||
sentryInstance.captureException(error);
|
||||
|
||||
// give it 2 seconds to finish sending:
|
||||
// https://docs.sentry.io/platforms/node/configuration/draining/
|
||||
await sentryInstance.flush(2000);
|
||||
|
Reference in New Issue
Block a user