20 lines
331 B
JavaScript
20 lines
331 B
JavaScript
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
uni()
|
|
],
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port:80
|
|
proxy: {
|
|
'/api': {
|
|
target: "https://cashier.sxczgkj.com",
|
|
changeOrigin: true,
|
|
rewrite: path => path.replace(/^\/api/, ''),
|
|
}
|
|
}
|
|
}
|
|
})
|