this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix missing name & short_name inside webmanifest

Need to pass env prefix to loadEnv too

+3 -2
+3 -2
vite.config.js
··· 9 9 import { VitePWA } from 'vite-plugin-pwa'; 10 10 import removeConsole from 'vite-plugin-remove-console'; 11 11 12 + const allowedEnvPrefixes = ['VITE_', 'PHANPY_']; 12 13 const { NODE_ENV } = process.env; 13 14 const { 14 15 PHANPY_CLIENT_NAME: CLIENT_NAME, 15 16 PHANPY_APP_ERROR_LOGGING: ERROR_LOGGING, 16 - } = loadEnv('production', process.cwd()); 17 + } = loadEnv('production', process.cwd(), allowedEnvPrefixes); 17 18 18 19 const now = new Date(); 19 20 let commitHash; ··· 35 36 // https://vitejs.dev/config/ 36 37 export default defineConfig({ 37 38 base: './', 38 - envPrefix: ['VITE_', 'PHANPY_'], 39 + envPrefix: allowedEnvPrefixes, 39 40 mode: NODE_ENV, 40 41 define: { 41 42 __BUILD_TIME__: JSON.stringify(now),