Skip to content

Commit 07c9871

Browse files
committed
Fix loadEnv call in Vite configuration to ensure proper environment variable loading
1 parent b6d54a6 commit 07c9871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { defineConfig, loadEnv } from 'vite';
44
import tailwindcss from '@tailwindcss/vite'
55

66
export default defineConfig(({ mode }) => {
7-
const env = loadEnv(mode, process.cwd());
7+
const env = loadEnv(mode, process.cwd(), '');
88
// In prod, app will be served under `demo.iex.ec/web3messaging` path
99
console.log(env.SET_SUBPATH_FOR_PROD);
1010

0 commit comments

Comments
 (0)