Files
halo-plugin-comment/packages/example/vite.config.ts
T
2026-03-16 00:03:35 +08:00

29 lines
563 B
TypeScript

import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 4000,
proxy: {
'/actuator': {
target: 'http://localhost:8090',
changeOrigin: true,
},
'/apis': {
target: 'http://localhost:8090',
changeOrigin: true,
},
'/upload': {
target: 'http://localhost:8090',
changeOrigin: true,
},
},
},
});