38 lines
804 B
TypeScript
38 lines
804 B
TypeScript
import path from "path"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
import { inspectAttr } from 'kimi-plugin-inspect-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [inspectAttr(), react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": {
|
|
target: "https://54.152.236.10",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
ws: true,
|
|
},
|
|
"/assets": {
|
|
target: "https://54.152.236.10",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
"/vault": {
|
|
target: "https://54.152.236.10",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
});
|