diff --git a/next.config.js b/next.config.js index 847d632..a6dd17d 100644 --- a/next.config.js +++ b/next.config.js @@ -20,7 +20,10 @@ const config = { cacheHandler: isProd ? require.resolve('./cache-handler.mjs') : undefined, cacheMaxMemorySize: 0, experimental: { - instrumentationHook: true, + ppr: true, + useLightningcss: true, + // typedEnv: true, + // typedRoutes: true, }, images: { domains: [ diff --git a/src/app/auth/phone/layout.tsx b/src/app/auth/phone/layout.tsx index 27a22c0..7165305 100644 --- a/src/app/auth/phone/layout.tsx +++ b/src/app/auth/phone/layout.tsx @@ -22,7 +22,7 @@ type AuthPageProps = { } function AuthPage(props: AuthPageProps) { - const children = use(props.children); + const children = props.children usePageTrack('auth') const { push: navigate } = useRouter() useEffect(() => { diff --git a/src/app/auth/signin/layout.tsx b/src/app/auth/signin/layout.tsx index c23ffea..c2024a3 100644 --- a/src/app/auth/signin/layout.tsx +++ b/src/app/auth/signin/layout.tsx @@ -1,13 +1,13 @@ 'use client' -import React, { useEffect, use } from 'react'; -import Card from '../../../components/card/card' +import React from 'react'; +import Card from '@/components/card/card' import Link from 'next/link' import Image from 'next/image' -import { GithubClientID, SignInWithAppleOptions } from '../../../constants/config'; -import { usePageTrack, useActionTrack } from '../../../hooks/tracke'; +import { GithubClientID } from '@/constants/config'; +import { usePageTrack, useActionTrack } from '@/hooks/tracke'; import { useTranslation } from 'react-i18next'; -import logo from '../../../assets/logo.png' -import GithubLogo from '../../../components/icons/github.logo.svg'; +import logo from '@/assets/logo.png' +import GithubLogo from '@/components/icons/github.logo.svg'; function checkIsCurrentPath({ isCurrent }: any) { return { @@ -20,7 +20,7 @@ type AuthPageProps = { } function AuthPage(props: AuthPageProps) { - const children = use(props.children); + const children = props.children usePageTrack('auth') // const { push: navigate } = useRouter() // useEffect(() => {