vite.config.ts 435 B

12345678910111213141516171819
  1. import { defineConfig } from 'vite'
  2. import uni from '@dcloudio/vite-plugin-uni'
  3. export default defineConfig({
  4. plugins: [uni()],
  5. server: {
  6. host: '0.0.0.0',
  7. port: 5174,
  8. strictPort: true,
  9. watch: { ignored: ['**/.edge-preview*/**'] },
  10. proxy: {
  11. '/dev-api': {
  12. target: 'http://127.0.0.1:8301',
  13. changeOrigin: true,
  14. rewrite: path => path.replace(/^\/dev-api/, ''),
  15. },
  16. },
  17. },
  18. })