| 12345678910111213141516171819 |
- import { defineConfig } from 'vite'
- import uni from '@dcloudio/vite-plugin-uni'
- export default defineConfig({
- plugins: [uni()],
- server: {
- host: '0.0.0.0',
- port: 5174,
- strictPort: true,
- watch: { ignored: ['**/.edge-preview*/**'] },
- proxy: {
- '/dev-api': {
- target: 'http://127.0.0.1:8301',
- changeOrigin: true,
- rewrite: path => path.replace(/^\/dev-api/, ''),
- },
- },
- },
- })
|