Remove project references and add build:watch all

This commit is contained in:
wancat committed 2024-01-29 13:26:41 +08:00
1 parent ba3b40792b
commit eb231e4056
9 files changed
+64 -14

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
'/api': {
target: process.env.API_TARGET || 'http://localhost:3000',
changeOrigin: false,
xfwd: true,
},
'/socket.io': {
target: process.env.API_TARGET || 'ws://localhost:3000',
changeOrigin: false,
ws: true,
xfwd: true,
},
},
},
})