优化证书生成与正式部署配置

This commit is contained in:
2026-06-15 18:23:46 +08:00
parent f1d7491288
commit 668e0403af
31 changed files with 1603 additions and 145 deletions

View File

@@ -1,13 +1,15 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || "http://localhost:8000";
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
"/api": {
target: "http://localhost:8000",
target: apiProxyTarget,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "")
}