diff --git a/web/global.d.ts b/web/global.d.ts
index 5599f1f5..e97d00dd 100644
--- a/web/global.d.ts
+++ b/web/global.d.ts
@@ -3,6 +3,7 @@ declare module 'next/config' {
     publicRuntimeConfig: {
       modifiedDate: string
       modifiedYear: string
+      gitHash: string?
     }
   }
 
diff --git a/web/next.config.mjs b/web/next.config.mjs
index 2adea4c7..dc9499bf 100644
--- a/web/next.config.mjs
+++ b/web/next.config.mjs
@@ -7,6 +7,9 @@ const config = async (_phase, { _defaultConfig }) => {
     git.stdout.on('data', (data) => {
       resolve(data.toString().trim())
     })
+    git.on('error', () => {
+      resolve(undefined)
+    })
   })
 
   /**