mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(electron): sentry is not enabled correctly in electron (#8286)
fix AF-1036
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user