refactor: get GIT_COMMIT and APP_VERSION from import.meta.env (#592)
This commit is contained in:
parent
687eca821d
commit
4adae16b80
3 changed files with 3 additions and 6 deletions
|
|
@ -26,8 +26,8 @@ const getAppVersion = () => {
|
|||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
define: {
|
||||
__GIT_COMMIT__: getGitHash(),
|
||||
__APP_VERSION__: getAppVersion()
|
||||
'import.meta.env.GIT_COMMIT': getGitHash(),
|
||||
'import.meta.env.APP_VERSION': getAppVersion()
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue