mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
build(ui): support base_path
This commit is contained in:
@@ -1 +1,2 @@
|
||||
VITE_APP_API_URL=http://127.0.0.1:8080
|
||||
VITE_APP_API_URL=http://127.0.0.1:8080
|
||||
VITE_APP_BASE_PATH=/
|
||||
+2
-1
@@ -1 +1,2 @@
|
||||
VITE_APP_API_URL=
|
||||
VITE_APP_API_URL=
|
||||
VITE_APP_BASE_PATH=/
|
||||
Binary file not shown.
+8
-8
@@ -13,19 +13,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@tanstack/router-plugin": "^1.106.0",
|
||||
"@types/node": "^22.13.4",
|
||||
"@tanstack/router-plugin": "^1.109.2",
|
||||
"@types/node": "^22.13.5",
|
||||
"@types/react": "^19.0.10",
|
||||
"@types/react-dom": "^19.0.4",
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"@types/react-copy-to-clipboard": "^5.0.7",
|
||||
"@types/react-syntax-highlighter": "^15.5.13",
|
||||
"tailwindcss": "^4.0.7",
|
||||
"tailwindcss": "^4.0.8",
|
||||
"typescript": "^5.7.3",
|
||||
"vite": "^6.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hookform/resolvers": "^4.1.0",
|
||||
"@hookform/resolvers": "^4.1.1",
|
||||
"@radix-ui/react-alert-dialog": "^1.1.6",
|
||||
"@radix-ui/react-checkbox": "^1.1.4",
|
||||
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
||||
@@ -37,10 +37,10 @@
|
||||
"@radix-ui/react-switch": "^1.1.3",
|
||||
"@radix-ui/react-tabs": "^1.1.3",
|
||||
"@radix-ui/react-tooltip": "^1.1.8",
|
||||
"@tailwindcss/vite": "^4.0.7",
|
||||
"@tanstack/react-query": "^5.66.8",
|
||||
"@tanstack/react-router": "^1.106.0",
|
||||
"@tanstack/router-devtools": "^1.106.0",
|
||||
"@tailwindcss/vite": "^4.0.8",
|
||||
"@tanstack/react-query": "^5.66.9",
|
||||
"@tanstack/react-router": "^1.109.2",
|
||||
"@tanstack/router-devtools": "^1.109.2",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"i18next": "^24.2.2",
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ const queryClient = new QueryClient();
|
||||
|
||||
const router = createRouter({
|
||||
routeTree,
|
||||
basepath: env.BASE_PATH,
|
||||
defaultPreload: "intent",
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [TanStackRouterVite({}), react(), tailwindcss()],
|
||||
plugins: [TanStackRouterVite(), react(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
|
||||
Reference in New Issue
Block a user