build(ui): support base_path

This commit is contained in:
ReaJason
2025-02-23 02:33:09 +08:00
parent 164d59c65a
commit f1d797295c
7 changed files with 15 additions and 11 deletions
+1
View File
@@ -2,6 +2,7 @@ import * as z from "zod";
const EnvSchema = z.object({
API_URL: z.optional(z.string()),
BASE_PATH: z.optional(z.string()),
MODE: z.string(),
});
+1
View File
@@ -12,6 +12,7 @@ const queryClient = new QueryClient();
const router = createRouter({
routeTree,
basepath: env.BASE_PATH,
defaultPreload: "intent",
});