1
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:
2022-05-30 11:34:13 -04:00
parent 3c866ddabf
commit 90eff3f063
3 changed files with 162 additions and 173 deletions

View File

@@ -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);