| 12345678910111213141516171819 |
- import { defineConfig, loadEnv } from "vite";
- import vue from "@vitejs/plugin-vue";
- export default defineConfig(({ mode }) => {
- const env = loadEnv(mode, process.cwd(), "");
- return {
- plugins: [vue()],
- server: {
- port: Number(env.VITE_PORT || 5173),
- proxy: {
- "/api": {
- target: env.VITE_PROXY_TARGET,
- changeOrigin: true,
- },
- },
- },
- };
- });
|