123456789101112131415161718192021 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- export default defineConfig({
- plugins: [
- vue()
- ],
- minify: 'terser',
- server: {
- open: true,
- proxy: {
- '/api': {
-
- target: 'https://dev.wutongresearch.club/api',
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, '')
- }
- }
- }
- })
|