Skip to content

Commit 773e175

Browse files
committed
fix: use correct Sentry release variable Ref: PT-1962
1 parent ec73a62 commit 773e175

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ ARG NODE_OPTIONS
101101
ENV NODE_OPTIONS=${NODE_OPTIONS}
102102

103103
# Release information
104-
ARG VITE_APP_RELEASE
104+
ARG VITE_APP_SENTRY_RELEASE
105105
ARG VITE_APP_COMMITHASH
106106
ARG VITE_APP_BUILDTIME
107107

108108
# Use template and inject the environment variables into .prod/nginx.conf
109109
ENV VITE_APP_BUILDTIME=${VITE_APP_BUILDTIME:-""}
110-
ENV VITE_APP_RELEASE=${VITE_APP_RELEASE:-""}
110+
ENV VITE_APP_RELEASE=${VITE_APP_SENTRY_RELEASE:-""}
111111
ENV VITE_APP_COMMITHASH=${VITE_APP_COMMITHASH:-""}
112112
COPY .prod/nginx.conf.template /tmp/.prod/nginx.conf.template
113113
RUN export APP_VERSION=$(yarn --silent app:version) && \

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (import.meta.env.VITE_APP_SENTRY_DSN) {
1414
Sentry.init({
1515
dsn: import.meta.env.VITE_APP_SENTRY_DSN,
1616
environment: import.meta.env.VITE_APP_SENTRY_ENVIRONMENT,
17-
release: import.meta.env.VITE_APP_RELEASE,
17+
release: import.meta.env.VITE_APP_SENTRY_RELEASE,
1818
integrations: [
1919
Sentry.browserTracingIntegration(),
2020
Sentry.replayIntegration(),

0 commit comments

Comments
 (0)