diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 93b8512a..00403017 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,8 +21,6 @@ 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 5ed6cd55..ea65e05b 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -20,8 +20,6 @@ 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/src/app.tsx b/src/app.tsx index 1a8ca172..52bac36d 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -17,8 +17,7 @@ import { errorConfig } from './requestErrorConfig'; import '@ant-design/v5-patch-for-react-19'; const isDev = - process.env.NODE_ENV === 'development' || - process.env.ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site'; + process.env.NODE_ENV === 'development' || process.env.GITHUB_ACTIONS; const loginPath = '/user/login'; /**