chore: server-and-serverless template
This commit is contained in:
12
apps/app/src/routes/index.tsx
Normal file
12
apps/app/src/routes/index.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { LandingPage } from '@/pages/LandingPage'
|
||||
import { useRedirectIfAuthenticated } from '@/hooks/useAuthGate'
|
||||
|
||||
export const Route = createFileRoute('/')({
|
||||
component: LandingRoute,
|
||||
})
|
||||
|
||||
function LandingRoute() {
|
||||
useRedirectIfAuthenticated()
|
||||
return <LandingPage />
|
||||
}
|
||||
Reference in New Issue
Block a user