vite.config.js 462 Bytes
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  base: './',
  assetsInclude: ['**/*.xlsx', '**/*.xls', '**/*.csv'],
  server: {
    host: '0.0.0.0',
    port: 8080,
    proxy: {
      '/zhijian-trial': {
        target: 'https://testznzl.lgyzpt.com',
        changeOrigin: true,
        secure: false,
        rewrite: (path) => path
      }
    }
  }
})