From abdfcd879dd9450ec2ece5d69716ee7dc81c8534 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 May 2022 21:24:20 +0100 Subject: [PATCH] Hopefully add sentry to cd builds --- .github/workflows/build.yaml | 5 +++++ src/main.jsx | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 00be1b0..7bf9faa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,11 @@ name: Build on: push: branches: [main] +env: + VITE_DEFAULT_HOMESERVER: "https://call.ems.host" + VITE_SENTRY_DSN: https://b1e328d49be3402ba96101338989fb35@sentry.matrix.org/41 + VITE_SENTRY_ENVIRONMENT: main-branch-cd + VITE_RAGESHAKE_SUBMIT_URL: https://element.io/bugreports/submit jobs: build: name: Build diff --git a/src/main.jsx b/src/main.jsx index d620ff9..d9a87d2 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -54,6 +54,7 @@ const history = createBrowserHistory(); Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, + environment: import.meta.env.VITE_SENTRY_ENVIRONMENT ?? "production", integrations: [ new Integrations.BrowserTracing({ routingInstrumentation: Sentry.reactRouterV5Instrumentation(history),