Files
vueapp/vite.config.ts
T

16 lines
312 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({
plugins: [uni()],
server: {
proxy: {
'/backend-api': {
target: 'http://192.168.2.76:8000',
changeOrigin: true,
rewrite: path => path.replace(/^\/backend-api/, '/api')
}
}
}
})