Skip to content

Commit

Permalink
Fix Sentry DSN not getting included in desktop builds
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed Sep 4, 2023
1 parent 34acbf3 commit 7104e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import Icon from "../icon/png/64x64.png";
import { tryCreateOntimeConnection } from "./ontime";
import * as Sentry from "@sentry/electron/main";

if (import.meta.env.VITE_SENTRY_DSN) {
if (import.meta.env.VITE_DESKTOP_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
dsn: import.meta.env.VITE_DESKTOP_SENTRY_DSN,
release: global.__SENTRY_RELEASE__,
});
console.log("[Main] Sentry enabled");
Expand Down
4 changes: 2 additions & 2 deletions desktop/src/renderer/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import * as ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";

if (import.meta.env.VITE_SENTRY_DSN) {
if (import.meta.env.VITE_DESKTOP_SENTRY_DSN) {
Sentry.init(
{
dsn: import.meta.env.VITE_SENTRY_DSN,
dsn: import.meta.env.VITE_DESKTOP_SENTRY_DSN,
release: global.__SENTRY_RELEASE__,
},
// @ts-expect-error something wrong with Sentry's typings
Expand Down

0 comments on commit 7104e53

Please sign in to comment.