Skip to content

Commit

Permalink
fix(electron): sentry is not enabled correctly in electron
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 18, 2024
1 parent eb47c03 commit c0fe22c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/frontend/apps/electron/scripts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ export const config = (): BuildOptions => {
define['process.env.GITHUB_SHA'] = `"${process.env.GITHUB_SHA}"`;
}

if (process.env.SENTRY_RELEASE) {
define['process.env.SENTRY_RELEASE'] = `"${process.env.SENTRY_RELEASE}"`;
}

if (process.env.SENTRY_DSN) {
define['process.env.SENTRY_DSN'] = `"${process.env.SENTRY_DSN}"`;
}

const plugins: Plugin[] = [];

if (
Expand Down

0 comments on commit c0fe22c

Please sign in to comment.