From 9230c8f4d2b724091fecdebf42802d55fe3d8052 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Mon, 2 Jan 2023 21:21:57 +0100 Subject: [PATCH] fix: remove ga from docker build (#6059) * fix: remove ga from docker build * lint * fix debug --- package.json | 2 +- public/index.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2923ddd5..9f5c46ab 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "private": true, "scripts": { "build-node": "node ./scripts/build-node.js", - "build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build", + "build:app:docker": "cross-env REACT_APP_DISABLE_SENTRY=true REACT_APP_DISABLE_TRACKING=true react-scripts build", "build:app": "cross-env REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build", "build:version": "node ./scripts/build-version.js", "build": "yarn build:app && yarn build:version", diff --git a/public/index.html b/public/index.html index e065e670..59981386 100644 --- a/public/index.html +++ b/public/index.html @@ -146,7 +146,8 @@ // setting this so that libraries installation reuses this window tab. window.name = "_excalidraw"; - <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %> + <% if (process.env.REACT_APP_DISABLE_TRACKING !== 'true' && + process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>