refactor(config): added config management with figue

This commit is contained in:
Corentin Thomasset 2022-05-24 00:07:54 +02:00
parent 5ce1262fb4
commit 6becdbb423
No known key found for this signature in database
GPG key ID: DBD997E935996158
7 changed files with 82 additions and 12 deletions

View file

@ -61,6 +61,5 @@ 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)),
},
});