File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 25
25
- name : Build
26
26
run : dotnet run bundle
27
27
env :
28
- APP_VERSION : ${{ github.ref_name }}
28
+ VITE_APP_VERSION : ${{ github.ref_name }}
29
29
30
30
- name : Azure Login
31
31
uses : azure/login@v1
Original file line number Diff line number Diff line change 15
15
</ script >
16
16
< script type ="module " src ="/output/App.js "> </ script >
17
17
< script type ="module ">
18
- document . title = document . title . concat ( ` - v${ window . APP_VERSION } ` )
18
+ const appVersion = import . meta. env . VITE_APP_VERSION || "dev"
19
+ document . title = document . title . concat ( ` - v${ appVersion } ` )
19
20
</ script >
20
21
21
22
</ body >
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react";
3
3
4
4
const proxyPort = process . env . SERVER_PROXY_PORT || "5000" ;
5
5
const proxyTarget = "http://localhost:" + proxyPort ;
6
- const appVersion = process . env . APP_VERSION || "dev"
7
6
8
7
// https://vitejs.dev/config/
9
8
export default defineConfig ( {
@@ -20,8 +19,5 @@ export default defineConfig({
20
19
changeOrigin : true ,
21
20
}
22
21
}
23
- } ,
24
- define : {
25
- APP_VERSION : JSON . stringify ( appVersion ) ,
26
22
}
27
23
} ) ;
You can’t perform that action at this time.
0 commit comments