mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
Require sentry environment variable
This commit is contained in:
committed by
Tony Giorgio
parent
cf3409120e
commit
0a584e0f44
@@ -43,8 +43,7 @@ type LoadStage =
|
||||
export type WalletWorker = Remote<typeof import("../workers/walletWorker")>;
|
||||
|
||||
const RELEASE_VERSION = import.meta.env.__RELEASE_VERSION__;
|
||||
const sentryenv =
|
||||
import.meta.env.VITE_SENTRY_ENVIRONMENT || (DEV ? "dev" : "prod");
|
||||
const sentryenv = import.meta.env.VITE_SENTRY_ENVIRONMENT || (DEV ? "dev" : "");
|
||||
|
||||
export const makeMegaStoreContext = () => {
|
||||
const [searchParams] = useSearchParams();
|
||||
@@ -53,7 +52,7 @@ export const makeMegaStoreContext = () => {
|
||||
localStorage.getItem("report_diagnostics") === "true";
|
||||
|
||||
// initialize both inside worker and outside
|
||||
if (reportDiagnostics) {
|
||||
if (reportDiagnostics && sentryenv !== "") {
|
||||
Sentry.init({
|
||||
dsn: "https://192c556849619517322719962a057376@sen.mutinywallet.com/2",
|
||||
environment: sentryenv,
|
||||
|
||||
@@ -29,8 +29,7 @@ import {
|
||||
} from "~/routes/settings";
|
||||
|
||||
const RELEASE_VERSION = import.meta.env.__RELEASE_VERSION__;
|
||||
const sentryenv =
|
||||
import.meta.env.VITE_SENTRY_ENVIRONMENT || (DEV ? "dev" : "prod");
|
||||
const sentryenv = import.meta.env.VITE_SENTRY_ENVIRONMENT || (DEV ? "dev" : "");
|
||||
|
||||
// For some reason {...invoice } doesn't bring across the paid field
|
||||
function destructureInvoice(invoice: MutinyInvoice): MutinyInvoice {
|
||||
@@ -103,7 +102,7 @@ export async function setupMutinyWallet(
|
||||
nsec?: string
|
||||
): Promise<boolean> {
|
||||
// initialize both inside worker and outside
|
||||
if (reportDiagnostics) {
|
||||
if (reportDiagnostics && sentryenv !== "") {
|
||||
Sentry.init({
|
||||
dsn: "https://192c556849619517322719962a057376@sen.mutinywallet.com/2",
|
||||
environment: sentryenv,
|
||||
|
||||
Reference in New Issue
Block a user