1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-06-10 03:02:20 +00:00

Fix type def, handle error case

This commit is contained in:
Brenden Matthews 2024-04-24 16:49:35 -04:00
parent 4c2969778b
commit 3d62277edd
2 changed files with 4 additions and 0 deletions

1
web/global.d.ts vendored
View File

@ -3,6 +3,7 @@ declare module 'next/config' {
publicRuntimeConfig: {
modifiedDate: string
modifiedYear: string
gitHash: string?
}
}

View File

@ -7,6 +7,9 @@ const config = async (_phase, { _defaultConfig }) => {
git.stdout.on('data', (data) => {
resolve(data.toString().trim())
})
git.on('error', () => {
resolve(undefined)
})
})
/**