Files
vueapp/vite.config.ts
T

16 lines
309 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': {
2026-06-01 17:21:34 +08:00
target: 'http://127.0.0.1:8000',
2026-06-01 14:49:14 +08:00
changeOrigin: true,
rewrite: path => path.replace(/^\/backend-api/, '/api')
}
}
}
})