feat: add git hash of build everywhere

This commit is contained in:
Jun Siang Cheah
2024-05-22 20:22:38 +01:00
parent d0d76e2ad5
commit a579f5f8cf
7 changed files with 24 additions and 6 deletions

View File

@@ -18,7 +18,8 @@ import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version)
APP_VERSION: JSON.stringify(process.env.npm_package_version),
APP_HASH: JSON.stringify(process.env.WEBUI_VERSION || 'dev-build')
},
worker: {
format: 'es'