refactor: get short commit
This commit is contained in:
parent
f98c667613
commit
bcf0965795
6 changed files with 11 additions and 8 deletions
|
@ -10,11 +10,12 @@ export default defineNuxtModule({
|
|||
name: 'elk:build-env',
|
||||
},
|
||||
async setup(_options, nuxt) {
|
||||
const { env, commit, branch } = await getEnv()
|
||||
const { env, commit, shortCommit, branch } = await getEnv()
|
||||
const buildInfo: BuildInfo = {
|
||||
version,
|
||||
time: +Date.now(),
|
||||
commit,
|
||||
shortCommit,
|
||||
branch,
|
||||
env,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue