Files
gen_short_link/vite.config.ts
2023-02-13 17:29:41 +08:00

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))
}
}
});