feat: add vite-plugin sentry #1991

Merged
konrad merged 8 commits from dpschen/frontend:feature/feat-vite-plugin-sentry into main 2023-06-18 13:40:23 +00:00
3 changed files with 1 additions and 4 deletions
Showing only changes of commit 95ba8b8a11 - Show all commits

View File

@ -74,8 +74,6 @@ steps:
from_secret: sentry_auth_token
SENTRY_ORG: vikunja
SENTRY_PROJECT: frontend-oss
SENTRY_RELEASE:
from_secret: sentry_release
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm run build

1
env.d.ts vendored
View File

@ -24,7 +24,6 @@ interface ImportMetaEnv {
readonly SENTRY_AUTH_TOKEN?: string
readonly SENTRY_ORG?: string
readonly SENTRY_PROJECT?: string
readonly SENTRY_RELEASE?: string
readonly VITE_WORKBOX_DEBUG?: boolean
readonly VITE_IS_ONLINE: boolean

View File

@ -48,7 +48,7 @@ function getSentryConfig(env: ImportMetaEnv): ViteSentryPluginOptions {
authToken: env.SENTRY_AUTH_TOKEN,
org: env.SENTRY_ORG,
project: env.SENTRY_PROJECT,
release: env.SENTRY_VERSION || VERSION,
release: VERSION,
deploy: {
env: env.mode === 'production'
? 'production'