25 lines
		
	
	
		
			469 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			469 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { defineConfig } from 'vite'
 | |
| import vue from '@vitejs/plugin-vue'
 | |
| 
 | |
| // https://vitejs.dev/config/
 | |
| export default defineConfig({
 | |
|   plugins: [vue()],
 | |
|   server: {
 | |
|     port: 3000,
 | |
|     proxy: {
 | |
|       '/api': {
 | |
|         target: 'http://localhost:8086',
 | |
|         changeOrigin: true
 | |
|       },
 | |
|       '/ws': {
 | |
|         target: 'http://localhost:8086',
 | |
|         changeOrigin: true,
 | |
|         ws: true
 | |
|       }
 | |
|     }
 | |
|   },
 | |
|   build: {
 | |
|     outDir: './dist',
 | |
|     emptyOutDir: true
 | |
|   }
 | |
| }) |