Skip to content

Commit

Permalink
chore: 修正typo
Browse files Browse the repository at this point in the history
  • Loading branch information
x6eull committed Feb 28, 2025
1 parent 038248f commit f5a09ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare global {
VITE_APIBASE?: string;
VITE_ENABLE_RUNTIME_CONFIG?: string;
VITE_BUILD_INFO?: string;
VITE_BUILD_INFO_DETAIL?: string;
}
}

Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const anyChanges = sh('git status --porcelain -uall').length > 0;
export default defineConfig({
define: {
'import.meta.env.VITE_BUILD_INFO': JSON.stringify(`构建版本 ${headCommitCount}${anyChanges ? '*' : ''}`),
'import.meta.env.VITE_BUILD_INFO_DETAIL': JSON.stringify(`${anyChanges ? '有未提交的更改\n' : ''}branch: ${headBranch}\ncommmit: ${headSha}`),
'import.meta.env.VITE_BUILD_INFO_DETAIL': JSON.stringify(`${anyChanges ? '有未提交的更改\n' : ''}branch: ${headBranch}\ncommit: ${headSha}`),
},
plugins: [react()],
css: {
Expand Down

0 comments on commit f5a09ed

Please sign in to comment.