Skip to content

Commit c2081c6

Browse files
committed
refactor: add proxy configuration for /schema in vite.config.ts
1 parent 9ac2710 commit c2081c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export default defineConfig(({ mode }) => {
3535
changeOrigin: true,
3636
rewrite: (path: string) => path.replace(ENV.VITE_BASE_PATH, '/'),
3737
}
38+
proxyConf['/schema'] = {
39+
target: 'http://127.0.0.1:8080',
40+
changeOrigin: true,
41+
rewrite: (path: string) => path.replace(ENV.VITE_BASE_PATH, '/'),
42+
}
3843
proxyConf['/static'] = {
3944
target: 'http://127.0.0.1:8080',
4045
changeOrigin: true,

0 commit comments

Comments
 (0)