Files
vueapp/vite.config.ts
T

17 lines
325 B
TypeScript
Raw Normal View History

2026-06-01 14:49:14 +08:00
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
2026-06-03 16:01:03 +08:00
base: './',
2026-06-01 14:49:14 +08:00
plugins: [uni()],
server: {
proxy: {
'/backend-api': {
2026-06-03 16:01:03 +08:00
target: 'http://192.168.2.76:8000',
2026-06-01 14:49:14 +08:00
changeOrigin: true,
rewrite: path => path.replace(/^\/backend-api/, '/api')
}
}
}
})