added app version environment variable

This commit is contained in:
Felix Baumgärtner 2024-01-18 15:35:12 +01:00
parent 67d349182e
commit cf128088f6

View File

@ -4,5 +4,8 @@ import { defineConfig } from 'vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
export default defineConfig({
plugins: [sveltekit(), purgeCss(), SvelteKitPWA()]
plugins: [sveltekit(), purgeCss(), SvelteKitPWA()],
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
},
});