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://118.195.192.58:1618",
|
|
changeOrigin: true,
|
|
rewrite: (p) => p.replace(/^\/dev-api/, "")
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
|
}
|
|
}
|
|
|
|
});
|