this repo has no description
0
fork

Configure Feed

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

Fix env not working in vite config

So the manifest can't even get the name 🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️

+5 -2
+5 -2
vite.config.js
··· 1 1 import preact from '@preact/preset-vite'; 2 2 import { execSync } from 'child_process'; 3 3 import { resolve } from 'path'; 4 - import { defineConfig, splitVendorChunkPlugin } from 'vite'; 4 + import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite'; 5 5 import { VitePWA } from 'vite-plugin-pwa'; 6 6 7 - const { VITE_CLIENT_NAME: CLIENT_NAME, NODE_ENV } = process.env; 7 + const { VITE_CLIENT_NAME: CLIENT_NAME, NODE_ENV } = loadEnv( 8 + 'production', 9 + process.cwd(), 10 + ); 8 11 9 12 const commitHash = execSync('git rev-parse --short HEAD').toString().trim(); 10 13