diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 65bf65f1..d9361b6a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: - name: Build run: dotnet run bundle env: - APP_VERSION: ${{ github.ref_name }} + VITE_APP_VERSION: ${{ github.ref_name }} - name: Azure Login uses: azure/login@v1 diff --git a/src/Client/index.html b/src/Client/index.html index e50e9fcf..a3aea5d8 100644 --- a/src/Client/index.html +++ b/src/Client/index.html @@ -15,7 +15,8 @@ diff --git a/src/Client/vite.config.mts b/src/Client/vite.config.mts index 7993f827..3208494d 100644 --- a/src/Client/vite.config.mts +++ b/src/Client/vite.config.mts @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react"; const proxyPort = process.env.SERVER_PROXY_PORT || "5000"; const proxyTarget = "http://localhost:" + proxyPort; -const appVersion = process.env.APP_VERSION || "dev" // https://vitejs.dev/config/ export default defineConfig({ @@ -20,8 +19,5 @@ export default defineConfig({ changeOrigin: true, } } - }, - define: { - APP_VERSION: JSON.stringify(appVersion), } }); \ No newline at end of file