From 6326346ddac06182f9dc99c15c62a7ba227797b3 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Aug 2026 09:08:17 +0800 Subject: [PATCH] =?utf8?q?chore:=20=E9=85=8D=E7=BD=AE=20basePath=3D/t/stat?= =?utf8?q?ionbuilder=EF=BC=8C=E4=BE=9B=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86?= =?utf8?q?=E5=9C=A8=E5=AD=90=E8=B7=AF=E5=BE=84=E6=8C=82=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- next.config.ts | 3 ++- vite.config.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index e9ffa30..265d71b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,8 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + // 让应用整体挂在 /t/stationbuilder 子路径下(通过 AIDemo.istation.cloud/t/stationbuilder 访问) + basePath: "/t/stationbuilder", }; export default nextConfig; diff --git a/vite.config.ts b/vite.config.ts index c79cebd..32117de 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -44,6 +44,8 @@ export default defineConfig(async () => { const { cloudflare } = await import("@cloudflare/vite-plugin"); return { + // 让 Vite/VinExt 整体挂在 /t/stationbuilder 子路径下(与 nginx 反向代理前缀一致) + base: "/t/stationbuilder", server: { host: "0.0.0.0", allowedHosts: true, -- 2.43.0