sentry: rename one env (REACT_APP_ENABLE_SENTRY -> REACT_APP_SENTRY_ENABLED)

This commit is contained in:
Dawid Wysokiński 2021-11-07 08:50:49 +01:00
parent 0fc7a8d6ae
commit 962ed4b610
Signed by: Kichiyaki
GPG Key ID: EF14026D247EB867
4 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ jobs:
with:
context: .
build-args: |
ENABLE_SENTRY=true
SENTRY_ENABLED=true
SENTRY_URL=${{ secrets.SENTRY_URL }}
SENTRY_ORG=${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}

View File

@ -8,14 +8,14 @@ RUN yarn
COPY . ./
ARG VERSION="v0.0.0"
ARG ENABLE_SENTRY="false"
ARG SENTRY_ENABLED="false"
ARG SENTRY_URL=""
ARG SENTRY_ORG=""
ARG SENTRY_PROJECT=""
ARG SENTRY_AUTH_TOKEN=""
ARG SENTRY_DSN=""
ENV REACT_APP_ENABLE_SENTRY=$ENABLE_SENTRY \
ENV REACT_APP_SENTRY_ENABLED=$SENTRY_ENABLED \
SENTRY_URL=$SENTRY_URL \
SENTRY_ORG=$SENTRY_ORG \
SENTRY_PROJECT=$SENTRY_PROJECT \

View File

@ -1,7 +1,7 @@
const SentryCli = require('@sentry/cli');
async function createReleaseAndUpload() {
if (process.env.REACT_APP_ENABLE_SENTRY !== 'true') {
if (process.env.REACT_APP_SENTRY_ENABLED !== 'true') {
return;
}

View File

@ -2,7 +2,7 @@ import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
const initSentry = () => {
if (process.env.REACT_APP_ENABLE_SENTRY !== 'true') {
if (process.env.REACT_APP_SENTRY_ENABLED !== 'true') {
return;
}