import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import { fileURLToPath, URL } from "node:url"; export default defineConfig({ plugins: [vue()], server: { proxy: { "/upload": { target: "https://ibms-uark.production.mjmtech.com.tw", changeOrigin: true, secure: false, }, }, }, resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), // @ -> src }, }, });