Browse Source

feat: add CI environment variable to deploy script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/11676/head
afc163 6 months ago
parent
commit
64cc63b3fd
  1. 2
      package.json
  2. 2
      src/app.tsx

2
package.json

@ -7,7 +7,7 @@
"scripts": { "scripts": {
"analyze": "cross-env ANALYZE=1 max build", "analyze": "cross-env ANALYZE=1 max build",
"build": "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", "dev": "npm run start:dev",
"gh-pages": "gh-pages -d dist", "gh-pages": "gh-pages -d dist",
"i18n-remove": "max i18n-remove --locale=zh-CN --write", "i18n-remove": "max i18n-remove --locale=zh-CN --write",

2
src/app.tsx

@ -117,7 +117,7 @@ export const layout: RunTimeLayoutConfig = ({
width: '331px', width: '331px',
}, },
], ],
links: isDevOrTest links: isDev
? [ ? [
<Link key="openapi" to="/umi/plugin/openapi" target="_blank"> <Link key="openapi" to="/umi/plugin/openapi" target="_blank">
<LinkOutlined /> <LinkOutlined />

Loading…
Cancel
Save