From 8ab897c2c4dea67397c953bc27b5137f023d945f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 8 Jul 2025 18:23:29 +0800 Subject: [PATCH] chore: build preview with setting drawer --- .github/workflows/deploy.yml | 2 ++ .github/workflows/preview-build.yml | 2 ++ biome.json | 1 + src/app.tsx | 4 +++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 00403017..93b8512a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,8 @@ jobs: - name: Build project run: bun run build + env: + ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v4 diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index ea65e05b..5ed6cd55 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -20,6 +20,8 @@ jobs: run: | yarn yarn build + env: + ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' - name: upload dist artifact uses: actions/upload-artifact@v4 diff --git a/biome.json b/biome.json index a7800711..4c6a0642 100644 --- a/biome.json +++ b/biome.json @@ -4,6 +4,7 @@ "ignoreUnknown": true, "includes": [ "**/*", + "**/*.yml", "!**/.umi/**", "**/*.md", "!**/.umi-production/**", diff --git a/src/app.tsx b/src/app.tsx index 599b8111..1a8ca172 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -16,7 +16,9 @@ import defaultSettings from '../config/defaultSettings'; import { errorConfig } from './requestErrorConfig'; import '@ant-design/v5-patch-for-react-19'; -const isDev = process.env.NODE_ENV === 'development'; +const isDev = + process.env.NODE_ENV === 'development' || + process.env.ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site'; const loginPath = '/user/login'; /**