17 lines
325 B
TypeScript
17 lines
325 B
TypeScript
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [uni()],
|
|
server: {
|
|
proxy: {
|
|
'/backend-api': {
|
|
target: 'http://192.168.2.76:8000',
|
|
changeOrigin: true,
|
|
rewrite: path => path.replace(/^\/backend-api/, '/api')
|
|
}
|
|
}
|
|
}
|
|
})
|