Skip to content

Commit 045d6d1

Browse files
committed
fix: rm landing page
1 parent f5f5256 commit 045d6d1

File tree

7 files changed

+4
-311
lines changed

7 files changed

+4
-311
lines changed

web/.env

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
VITE_APP_API_URL=http://127.0.0.1:8080
2-
VITE_APP_BASE_PATH=/
3-
VITE_APP_LANDING=false
2+
VITE_APP_BASE_PATH=/

web/.env.production

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
VITE_APP_API_URL=
2-
VITE_APP_BASE_PATH=/
3-
VITE_APP_LANDING=true
2+
VITE_APP_BASE_PATH=/

web/bun.lockb

0 Bytes
Binary file not shown.

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@hookform/resolvers": "^5.2.1",
3333
"@tailwindcss/vite": "^4.1.11",
34-
"@tanstack/react-query": "^5.84.2",
34+
"@tanstack/react-query": "^5.85.0",
3535
"class-variance-authority": "^0.7.1",
3636
"clsx": "^2.1.1",
3737
"framer-motion": "^12.23.12",

web/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const EnvSchema = yup.object({
44
API_URL: yup.string().optional(),
55
BASE_PATH: yup.string().optional(),
66
MODE: yup.string().required(),
7-
LANDING: yup.boolean().required(),
87
});
98

109
type EnvSchema = yup.InferType<typeof EnvSchema>;

web/src/pages/landing.tsx

Lines changed: 0 additions & 296 deletions
This file was deleted.

web/src/router.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {createHashRouter} from "react-router-dom";
22
import RootLayout from "@/components/layouts/root-layout";
33
import {env} from "@/config";
4-
import LandingPage from "@/pages/landing";
54
import MemShellPage from "@/pages/memshell";
65
import ProbeShellPage from "@/pages/probeshell";
76
import type {MemShellFormSchema} from "@/types/schema";
@@ -42,13 +41,6 @@ const parseUrlParams = (searchParams: URLSearchParams): Partial<MemShellFormSche
4241
return result;
4342
};
4443

45-
function RootIndexPage() {
46-
if (env.LANDING) {
47-
return <LandingPage />;
48-
}
49-
return <MemShellPage />;
50-
}
51-
5244
export const router = createHashRouter(
5345
[
5446
{
@@ -57,7 +49,7 @@ export const router = createHashRouter(
5749
children: [
5850
{
5951
index: true,
60-
element: <RootIndexPage />,
52+
element: <MemShellPage />,
6153
loader: ({ request }) => {
6254
const url = new URL(request.url);
6355
return parseUrlParams(url.searchParams);

0 commit comments

Comments
 (0)