File tree Expand file tree Collapse file tree 7 files changed +4
-311
lines changed
Expand file tree Collapse file tree 7 files changed +4
-311
lines changed Original file line number Diff line number Diff line change 11VITE_APP_API_URL = http://127.0.0.1:8080
2- VITE_APP_BASE_PATH = /
3- VITE_APP_LANDING = false
2+ VITE_APP_BASE_PATH = /
Original file line number Diff line number Diff line change 11VITE_APP_API_URL =
2- VITE_APP_BASE_PATH = /
3- VITE_APP_LANDING = true
2+ VITE_APP_BASE_PATH = /
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
109type EnvSchema = yup . InferType < typeof EnvSchema > ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { createHashRouter } from "react-router-dom" ;
22import RootLayout from "@/components/layouts/root-layout" ;
33import { env } from "@/config" ;
4- import LandingPage from "@/pages/landing" ;
54import MemShellPage from "@/pages/memshell" ;
65import ProbeShellPage from "@/pages/probeshell" ;
76import 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-
5244export 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 ) ;
You can’t perform that action at this time.
0 commit comments