diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7a5d313..ae086330 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,11 +48,11 @@ jobs: run: | echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env - echo "MAIN_VITE_SENTRY_DSN=${{ secrets.MAIN_VITE_SENTRY_DSN }}" >> .env - echo "MAIN_VITE_SENTRY_CRASH_REPORT_DSN=${{ secrets.MAIN_VITE_SENTRY_CRASH_REPORT_DSN }}" >> .env + echo "MAIN_VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env + echo "MAIN_VITE_SENTRY_CRASH_REPORT_DSN=${{ secrets.SENTRY_CRASH_REPORT_DSN }}" >> .env - echo "RENDERER_VITE_SENTRY_DSN=${{ secrets.RENDERER_VITE_SENTRY_DSN }}" >> .env - echo "RENDERER_VITE_SENTRY_CRASH_REPORT_DSN=${{ secrets.RENDERER_VITE_SENTRY_CRASH_REPORT_DSN }}" >> .env + echo "RENDERER_VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env + echo "RENDERER_VITE_SENTRY_CRASH_REPORT_DSN=${{ secrets.SENTRY_CRASH_REPORT_DSN }}" >> .env - name: Install dependencies run: yarn install diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 6957ce45..0aa1fa12 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -1,3 +1,4 @@ +import 'dotenv/config'; import { execSync } from 'child_process'; import { sentryVitePlugin } from '@sentry/vite-plugin'; import react from '@vitejs/plugin-react'; @@ -13,6 +14,7 @@ const sentryPlugin = sentryVitePlugin({ org: 'dragonrealms-phoenix', project: 'phoenix', telemetry: false, + authToken: process.env.SENTRY_AUTH_TOKEN, disable: process.env.VITE_PLUGIN_SENTRY_ENABLE !== 'true', }) as PluginOption; diff --git a/package.json b/package.json index b6b34ffe..4a553780 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "@typescript-eslint/parser": "^6.7.3", "@vitejs/plugin-react": "^4.1.0", "cross-env": "^7.0.3", + "dotenv": "^16.3.1", "electron": "^26.2.4", "electron-builder": "^24.6.4", "electron-vite": "^1.0.28",