From 0e1cc11330e4ee2d243323dab1057664bb9ae5ac Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 29 Oct 2025 16:01:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96packge.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.mock | 4 ++++ package.json | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.mock b/.env.mock index 2efd1e02..63c9a652 100644 --- a/.env.mock +++ b/.env.mock @@ -42,3 +42,7 @@ REACT_APP_ENV=mock REACT_APP_POSTHOG_KEY= REACT_APP_POSTHOG_HOST=https://app.posthog.com REACT_APP_ENABLE_SESSION_RECORDING=false + +# PostHog Debug 模式(Mock 环境永久启用) +# 在浏览器 Console 中打印详细的事件追踪日志 +REACT_APP_POSTHOG_DEBUG=true diff --git a/package.json b/package.json index 471ab520..ff6605f4 100755 --- a/package.json +++ b/package.json @@ -96,17 +96,14 @@ "prestart": "kill-port 3000", "start": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' env-cmd -f .env.mock craco start", "start:real": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' env-cmd -f .env.local craco start", - "start:mock": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' env-cmd -f .env.mock craco start", "start:dev": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' env-cmd -f .env.development craco start", "start:test": "concurrently \"python app_2.py\" \"npm run frontend:test\" --names \"backend,frontend\" --prefix-colors \"blue,green\"", "frontend:test": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' env-cmd -f .env.test craco start", "dev": "npm start", "backend": "python app_2.py", - "kill-port": "kill-port 3000", "build": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' craco build && gulp licenses", "build:analyze": "NODE_OPTIONS='--openssl-legacy-provider --max_old_space_size=4096' ANALYZE=true craco build", "test": "craco test --env=jsdom", - "test:tracking": "REACT_APP_POSTHOG_DEBUG=true npm run start:mock", "eject": "react-scripts eject", "deploy": "bash scripts/deploy-from-local.sh", "deploy:setup": "bash scripts/setup-deployment.sh",