File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
2
2
import react from '@vitejs/plugin-react'
3
3
import tsconfigPaths from 'vite-tsconfig-paths'
4
4
import path from 'path'
5
+ import { version } from './package.json'
5
6
6
7
// https://vitejs.dev/config/
7
8
@@ -16,14 +17,14 @@ if (buildEnv === 'DOCUMENTATION') {
16
17
sourcemap : true ,
17
18
} ,
18
19
define : {
19
- _APP_VERSION_ : JSON . stringify ( process . env . VITE_APP_VERSION || 'desarrollo' ) ,
20
+ _APP_VERSION_ : JSON . stringify ( version ) ,
20
21
}
21
22
}
22
23
} else {
23
24
myDefineConfig = {
24
25
plugins : [ react ( ) , tsconfigPaths ( ) ] ,
25
26
define : {
26
- _APP_VERSION_ : JSON . stringify ( process . env . VITE_APP_VERSION || 'desarrollo' ) ,
27
+ _APP_VERSION_ : JSON . stringify ( version ) ,
27
28
} ,
28
29
build : {
29
30
lib : {
You can’t perform that action at this time.
0 commit comments