19 lines
328 B
JavaScript
19 lines
328 B
JavaScript
import {
|
|
defineConfig
|
|
} from 'vite';
|
|
import uni from '@dcloudio/vite-plugin-uni';
|
|
|
|
export default defineConfig({
|
|
plugins: [uni()],
|
|
server: {
|
|
hmr: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://cashier.sxczgkj.cn',
|
|
changeOrigin: true,
|
|
rewrite: path => path.replace(/^\/api/, ''),
|
|
secure: false
|
|
}
|
|
}
|
|
}
|
|
}) |