Skip to content

Commit b6d54a6

Browse files
committed
Log environment variable for production base path in Vite configuration
1 parent 207ea21 commit b6d54a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import tailwindcss from '@tailwindcss/vite'
66
export default defineConfig(({ mode }) => {
77
const env = loadEnv(mode, process.cwd());
88
// In prod, app will be served under `demo.iex.ec/web3messaging` path
9+
console.log(env.SET_SUBPATH_FOR_PROD);
10+
911
const basePath =
1012
env.SET_SUBPATH_FOR_PROD === 'true' ? '/web3messaging' : '/';
1113
console.log('[vite] Building with base path:', basePath);

0 commit comments

Comments
 (0)