-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
58 lines (57 loc) · 1.85 KB
/
Copy pathvite.config.ts
File metadata and controls
58 lines (57 loc) · 1.85 KB
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
49
50
51
52
53
54
55
56
57
58
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/aggregator1/v1': {
target: 'https://aggregator.walrus-testnet.walrus.space',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/aggregator/, ''),
},
'/aggregator2/v1': {
target: 'https://wal-aggregator-testnet.staketab.org',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/aggregator2/, ''),
},
'/aggregator3/v1': {
target: 'https://walrus-testnet-aggregator.redundex.com',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/aggregator3/, ''),
},
'/aggregator4/v1': {
target: 'https://walrus-testnet-aggregator.trusted-point.com',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/aggregator3/, ''),
},
'/publisher1/v1': {
target: 'https://publisher.walrus-testnet.walrus.space',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/publisher1/, ''),
},
'/publisher2/v1': {
target: 'https://wal-publisher-testnet.staketab.org',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/publisher2/, ''),
},
'/publisher3/v1': {
target: 'https://walrus-testnet-publisher.redundex.com',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/publisher3/, ''),
},
'/publisher4/v1': {
target: 'https://walrus-testnet-publisher.trusted-point.com',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/publisher3/, ''),
},
},
},
});