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 ? [