sentry: rename one env (REACT_APP_ENABLE_SENTRY -> REACT_APP_SENTRY_ENABLED)
This commit is contained in:
parent
0fc7a8d6ae
commit
962ed4b610
|
@ -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 }}
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue