From bf354da170edc35c947816673963fe171264a4c5 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 30 Aug 2024 17:28:02 +0200 Subject: [PATCH] Use vite production mode --- src/main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.tsx b/src/main.tsx index 49e6c3c..3cfaea3 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -9,7 +9,7 @@ import { routeTree } from "./routeTree.gen"; import { Failure } from "@codex-storage/marketplace-ui-components"; import * as Sentry from "@sentry/react"; -if (process.env.NODE_ENV === "production") { +if (import.meta.env.PROD) { Sentry.init({ dsn: "https://22d77c59a27b8d5efc07132188b505b9@o4507855852011520.ingest.de.sentry.io/4507866758512720", integrations: [