diff --git a/package.json b/package.json index f131ae7d7..491da4bf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ecency-vision-next", - "version": "4.0.1", + "version": "4.0.2", "private": true, "scripts": { "dev": "next dev", diff --git a/sentry.client.config.ts b/sentry.client.config.ts index 688ccef1f..4bc493010 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -3,6 +3,7 @@ // https://docs.sentry.io/platforms/javascript/guides/nextjs/ import * as Sentry from "@sentry/nextjs"; +import appPackage from "./package.json"; Sentry.init({ dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744", @@ -10,6 +11,8 @@ Sentry.init({ // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, + release: appPackage.version, + // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false }); diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index d986b87b4..e4b7f3395 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -4,6 +4,7 @@ // https://docs.sentry.io/platforms/javascript/guides/nextjs/ import * as Sentry from "@sentry/nextjs"; +import appPackage from "./package.json"; Sentry.init({ dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744", @@ -11,6 +12,8 @@ Sentry.init({ // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, + release: appPackage.version, + // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false }); diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 90a1d1244..607eaaf2c 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -4,6 +4,7 @@ import * as Sentry from "@sentry/nextjs"; import { nodeProfilingIntegration } from "@sentry/profiling-node"; +import appPackage from "./package.json"; Sentry.init({ dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744", @@ -13,5 +14,6 @@ Sentry.init({ // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + release: appPackage.version, integrations: [nodeProfilingIntegration()] }); diff --git a/src/app/(dynamicPages)/profile/[username]/_components/preferences/index.tsx b/src/app/(dynamicPages)/profile/[username]/_components/preferences/index.tsx index 10b393298..211a8edea 100644 --- a/src/app/(dynamicPages)/profile/[username]/_components/preferences/index.tsx +++ b/src/app/(dynamicPages)/profile/[username]/_components/preferences/index.tsx @@ -66,7 +66,6 @@ export function Preferences() { [setCurrency] ); - // @ts-ignore return ( <>