Files

36 lines
677 B
TypeScript
Raw Permalink Normal View History

2026-03-06 02:02:59 +08:00
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import path from 'path'
export default defineConfig({
plugins: [
uni()
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
server: {
port: 5173,
proxy: {
'/mobile': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/getInfo': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/system': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/api': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
}
})