Skip to content

Commit b66ca08

Browse files
committed
fix: set base path for production and development in Vite configuration
1 parent a470213 commit b66ca08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

vite.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import tailwindcss from '@tailwindcss/vite'
55

66
export default defineConfig(({ mode }) => {
77
const env = loadEnv(mode, process.cwd(), '');
8-
// In prod, app will be served under `demo.iex.ec/web3messaging` path
9-
const basePath =
10-
env.SET_SUBPATH_FOR_PROD === 'true' ? '/web3messaging' : '/';
11-
console.log('[vite] Building with base path:', basePath);
128
return {
13-
base: basePath,
9+
base: "/web3messaging",
1410
define: {
1511
'process.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN': JSON.stringify(
1612
env.NEXT_PUBLIC_SECURE_SITE_ORIGIN || 'https://secure.walletconnect.org'

0 commit comments

Comments
 (0)