This commit is contained in:
hailin 2025-04-17 18:18:03 +08:00
parent 2f8e3d8339
commit 32a2ff8b0c
4 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,8 @@ export default function HomePage() {
return (
<div className="flex size-full flex-col items-center justify-center relative">
<HomeRedirector />
<LanguageSwitcher />
{/* <HomeRedirector />
<LanguageSwitcher /> */}
<div>
<ChatbotUISVG theme={theme === "dark" ? "dark" : "light"} scale={0.3} />

View File

@ -6,7 +6,7 @@ import { useEffect, useTransition } from 'react'
import { Globe } from 'lucide-react'
export function LanguageSwitcher() {
console.log('home-switcher 2==========================>')
console.log('LanguageSwitcher ==========================>')
const router = useRouter()
const pathname = usePathname()
const [isPending, startTransition] = useTransition()

View File

@ -9,7 +9,7 @@ const isValidLocale = (locale: string): locale is (typeof i18nConfig.locales)[nu
}
export default function HomeRedirector() {
console.log('home-redirecting 1==========================>')
console.log('home-redirecting ==========================>')
const router = useRouter()
useEffect(() => {

View File

@ -4,7 +4,7 @@ import { NextResponse, type NextRequest } from "next/server"
import i18nConfig from "./i18nConfig"
export async function middleware(request: NextRequest) {
console.log('middleware 3==========================>')
console.log('middleware ==========================>')
const { pathname } = request.nextUrl
const preferredLanguage = request.cookies.get("preferred-language")?.value