2024-11-20 16:23:15 +08:00
|
|
|
import {
|
|
|
|
defineConfig
|
|
|
|
} from 'vite'
|
2024-09-18 10:30:10 +08:00
|
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
|
|
|
|
export default defineConfig(() => {
|
2024-11-20 16:23:15 +08:00
|
|
|
return {
|
|
|
|
server: {
|
|
|
|
port: '3006',
|
2024-12-28 21:29:59 +08:00
|
|
|
host: '0.0.0.0',
|
|
|
|
open: true,
|
|
|
|
proxy: {
|
|
|
|
'/dev-api': {
|
|
|
|
target: 'http://localhost:8088',
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
|
|
}
|
|
|
|
}
|
2024-11-20 16:23:15 +08:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
uni()
|
|
|
|
],
|
|
|
|
}
|
|
|
|
})
|