forked from XLabs/portal-bridge-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
48 lines (45 loc) · 1.46 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { viteStaticCopy } from 'vite-plugin-static-copy'
const MAINNET_RPCS = {
rpcs: {
wormchain: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/wormchain/",
solana: "https://wormhole.rpcpool.com/",
osmosis: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/osmosis/",
ethereum: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/ethereum/",
sui: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/sui/",
aptos: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/aptos/",
kujira: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/kujira/"
}
}
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.PUBLIC_URL || '',
define: {
redirects: {},
wormholeConnectConfig: {
walletConnectProjectId: process.env.VITE_APP_WALLET_CONNECT_PROJECT_ID || '',
env: process.env.VITE_APP_CLUSTER || 'mainnet',
...(process.env.VITE_APP_CLUSTER === 'mainnet' ? MAINNET_RPCS : {}),
showHamburgerMenu: false,
menu: [
{
label: 'Advanced Tools',
href: `${process.env.PUBLIC_URL}/advanced-tools/`,
order: 1
}
]
}
},
plugins: [
react(),
viteStaticCopy({
targets: [
{
src: 'node_modules/@wormhole-foundation/wormhole-connect/dist/*',
dest: 'assets/wormhole-connect/'
}
]
})
],
})