We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227a15b commit 207ea21Copy full SHA for 207ea21
vite.config.ts
@@ -5,7 +5,12 @@ import tailwindcss from '@tailwindcss/vite'
5
6
export default defineConfig(({ mode }) => {
7
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);
12
return {
13
+ base: basePath,
14
define: {
15
'process.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN': JSON.stringify(
16
env.NEXT_PUBLIC_SECURE_SITE_ORIGIN || 'https://secure.walletconnect.org'
0 commit comments