chore: upgrade vite

This commit is contained in:
Steven
2023-03-15 07:47:00 +08:00
parent 33d71d82fa
commit 77b3f03f5a
3 changed files with 231 additions and 459 deletions

View File

@@ -1,20 +1,17 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: "0.0.0.0",
port: 3000,
proxy: {
"/api": {
target: "http://localhost:8082/",
changeOrigin: true,
},
"/o": {
target: "http://localhost:8082/",
changeOrigin: true,
},
},
},
});