Skip to content

Commit 058f8cd

Browse files
ErioldDaniel Montoya
andauthored
fix(): package lock (#671)
Co-authored-by: Daniel Montoya <daniel.montoya@eclass.cl>
1 parent b253098 commit 058f8cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33
import tsconfigPaths from 'vite-tsconfig-paths'
44
import path from 'path'
5+
import { version } from './package.json'
56

67
// https://vitejs.dev/config/
78

@@ -16,14 +17,14 @@ if (buildEnv === 'DOCUMENTATION') {
1617
sourcemap: true,
1718
},
1819
define : {
19-
_APP_VERSION_: JSON.stringify(process.env.VITE_APP_VERSION || 'desarrollo'),
20+
_APP_VERSION_: JSON.stringify(version),
2021
}
2122
}
2223
} else {
2324
myDefineConfig = {
2425
plugins: [react(), tsconfigPaths()],
2526
define : {
26-
_APP_VERSION_: JSON.stringify(process.env.VITE_APP_VERSION || 'desarrollo'),
27+
_APP_VERSION_: JSON.stringify(version),
2728
},
2829
build: {
2930
lib: {

0 commit comments

Comments
 (0)