feat: added commit short sha

This commit is contained in:
Corentin Thomasset 2022-04-16 15:12:33 +02:00
parent f544928402
commit 668625c6da
No known key found for this signature in database
GPG key ID: DBD997E935996158
3 changed files with 31 additions and 14 deletions

View file

@ -61,5 +61,6 @@ export default defineConfig({
},
define: {
'import.meta.env.PACKAGE_VERSION': JSON.stringify(process.env.npm_package_version),
'import.meta.env.GIT_SHORT_SHA': JSON.stringify((process?.env?.VITE_VERCEL_GIT_COMMIT_SHA ?? '').slice(0, 7)),
},
});