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