You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 line
327 B

  1. import { defineConfig } from 'vite'
  2. import uni from '@dcloudio/vite-plugin-uni'
  3. export default defineConfig({
  4. plugins: [uni()],
  5. server: {
  6. proxy: {
  7. '/pro-api': {
  8. target: 'http://192.168.3.66:8361',
  9. changeOrigin: true,
  10. rewrite: (path) => path.replace(/^\/pro-api/, '')
  11. }
  12. }
  13. }
  14. })