-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (29 loc) · 822 Bytes
/
Copy pathvite.config.ts
File metadata and controls
30 lines (29 loc) · 822 Bytes
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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
base: '/folding/',
server: {
port: 5173,
proxy: {
'/folding/api': {
target: 'https://gowe.software-smithy.org',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/folding\/api/, '/api'),
secure: true,
},
'/folding/auth': {
target: 'https://user.patricbrc.org',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/folding\/auth/, ''),
secure: true,
},
'/folding/ws-api': {
target: 'https://p3.theseed.org/services/Workspace',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/folding\/ws-api/, ''),
secure: true,
},
},
},
});