From 64cc63b3fd0e7703de40f5ca653bfc1c166fca14 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 13 Apr 2026 10:22:09 +0800 Subject: [PATCH] feat: add CI environment variable to deploy script Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src/app.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e2bf1630..b481d61f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "analyze": "cross-env ANALYZE=1 max build", "build": "max build", - "deploy": "npm run build && npm run gh-pages", + "deploy": "cross-env CI=true npm run build && npm run gh-pages", "dev": "npm run start:dev", "gh-pages": "gh-pages -d dist", "i18n-remove": "max i18n-remove --locale=zh-CN --write", diff --git a/src/app.tsx b/src/app.tsx index d308b0dd..08fe8599 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -117,7 +117,7 @@ export const layout: RunTimeLayoutConfig = ({ width: '331px', }, ], - links: isDevOrTest + links: isDev ? [