From e73bd834a1a39182d4ec43561f72ae16602aac19 Mon Sep 17 00:00:00 2001 From: jianf <2198972886@qq.com> Date: Mon, 17 Aug 2026 12:11:30 +0800 Subject: [PATCH] =?UTF-8?q?style(web):=20=E4=BF=9D=E6=8C=81=20vite.config.?= =?UTF-8?q?ts=20=E5=8D=95=E5=BC=95=E5=8F=B7=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/vite.config.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index 7fd20a2..e52e1bc 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,17 +1,17 @@ -import { defineConfig } from "vite"; -import vue from "@vitejs/plugin-vue"; -import { fileURLToPath } from "node:url"; +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import { fileURLToPath } from 'node:url' // Backend default port (cmd/webui4frpc -addr). Override with VITE_PROXY_TARGET. -const backend = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7500"; +const backend = process.env.VITE_PROXY_TARGET || 'http://127.0.0.1:7500' // The frontend is served by the Go binary at / (embedded dist), and talks to // the same origin via /api/manager/*. export default defineConfig({ plugins: [vue()], - base: "/", + base: '/', resolve: { - alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) }, + alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, css: { preprocessorOptions: { @@ -21,11 +21,11 @@ export default defineConfig({ }, }, build: { - outDir: "dist", + outDir: 'dist', }, server: { proxy: { - "/api": backend, + '/api': backend, }, }, -}); +})