mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-03 20:20:11 +00:00
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
import react from "@vitejs/plugin-react"
|
|
import path from "path"
|
|
import { defineConfig } from "vite"
|
|
|
|
export default defineConfig({
|
|
base: "/dashboard",
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
"^/api/v1/ws/.*": {
|
|
target: "ws://localhost:8008",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
"/api": {
|
|
target: "http://localhost:8008",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
}) |