25 lines
495 B
TypeScript
25 lines
495 B
TypeScript
|
import { fileURLToPath, URL } from "node:url";
|
||
|
|
||
|
import { defineConfig } from "vite";
|
||
|
import vue from "@vitejs/plugin-vue";
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [vue()],
|
||
|
server: {
|
||
|
proxy: {
|
||
|
"/dev-api": {
|
||
|
target: "http://192.168.110.10:1618",
|
||
|
changeOrigin: true,
|
||
|
rewrite: (p) => p.replace(/^\/dev-api/, "")
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
});
|