Skip to content

Commit f5a09ed

Browse files
committed
chore: 修正typo
1 parent 038248f commit f5a09ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare global {
1414
VITE_APIBASE?: string;
1515
VITE_ENABLE_RUNTIME_CONFIG?: string;
1616
VITE_BUILD_INFO?: string;
17+
VITE_BUILD_INFO_DETAIL?: string;
1718
}
1819
}
1920

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const anyChanges = sh('git status --porcelain -uall').length > 0;
1414
export default defineConfig({
1515
define: {
1616
'import.meta.env.VITE_BUILD_INFO': JSON.stringify(`构建版本 ${headCommitCount}${anyChanges ? '*' : ''}`),
17-
'import.meta.env.VITE_BUILD_INFO_DETAIL': JSON.stringify(`${anyChanges ? '有未提交的更改\n' : ''}branch: ${headBranch}\ncommmit: ${headSha}`),
17+
'import.meta.env.VITE_BUILD_INFO_DETAIL': JSON.stringify(`${anyChanges ? '有未提交的更改\n' : ''}branch: ${headBranch}\ncommit: ${headSha}`),
1818
},
1919
plugins: [react()],
2020
css: {

0 commit comments

Comments
 (0)