mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-21 04:14:26 +00:00
chore: update frontend folder
This commit is contained in:
21
frontend/web/vite.config.ts
Normal file
21
frontend/web/vite.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// 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,
|
||||
},
|
||||
"/s/": {
|
||||
target: "http://localhost:8082/",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user