Fix
Some checks failed
Some checks failed
This commit is contained in:
@@ -3,7 +3,7 @@ import { defineConfig } from 'vite';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import pkg from './package.json' with { type: 'json' };
|
||||
|
||||
const appVersion = import.meta.env.VITE_APP_VERSION ?? pkg.version ?? 'dev';
|
||||
const appVersion = (process.env as Record<string, string | undefined>).VITE_APP_VERSION ?? pkg.version ?? 'dev';
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
|
||||
Reference in New Issue
Block a user