From 8361990e1591e673a669aae7ab26350a86ceba65 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Tue, 20 Feb 2024 03:05:57 +1030 Subject: [PATCH] fix(seo): remove metadata on client components --- src/app/(account)/forgot-password/page.tsx | 9 ++++----- src/app/(account)/join/page.tsx | 7 +++---- src/app/(account)/signin/page.tsx | 7 +++---- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/app/(account)/forgot-password/page.tsx b/src/app/(account)/forgot-password/page.tsx index f948a1ad..17e3f347 100644 --- a/src/app/(account)/forgot-password/page.tsx +++ b/src/app/(account)/forgot-password/page.tsx @@ -5,17 +5,16 @@ import ControlledField from '@/components/ControlledField'; import FancyRectangle from '@/components/FancyRectangle'; import { useSignIn } from '@clerk/nextjs'; import { zodResolver } from '@hookform/resolvers/zod'; -import type { Metadata } from 'next'; import { useState } from 'react'; import { useForm } from 'react-hook-form'; import { z } from 'zod'; import { handleClerkErrors } from '../helpers'; import { codeSchema, emailSchema, passwordSchema } from '../schemas'; -export const metadata: Metadata = { - title: 'Forgot Password', - robots: { index: false, follow: false }, -}; +// export const metadata: Metadata = { +// title: 'Forgot Password', +// robots: { index: false, follow: false }, +// }; const sendCodeSchema = z.object({ email: emailSchema, diff --git a/src/app/(account)/join/page.tsx b/src/app/(account)/join/page.tsx index 881d0d83..dce7418b 100644 --- a/src/app/(account)/join/page.tsx +++ b/src/app/(account)/join/page.tsx @@ -3,7 +3,6 @@ import FancyRectangle from '@/components/FancyRectangle'; import Title from '@/components/Title'; import { SignedIn, SignedOut, useUser } from '@clerk/nextjs'; -import type { Metadata } from 'next'; import Link from 'next/link'; import { useEffect } from 'react'; import ProgressBar from './ProgressBar'; @@ -13,9 +12,9 @@ import StepThree from './steps/StepThree'; import StepTwo from './steps/StepTwo'; import { useJoinUsHeading, useJoinUsStep } from './store'; -export const metadata: Metadata = { - title: 'Join', -}; +// export const metadata: Metadata = { +// title: 'Join', +// }; export default function JoinPage() { const { step, setStep } = useJoinUsStep(); diff --git a/src/app/(account)/signin/page.tsx b/src/app/(account)/signin/page.tsx index 165c685e..64d469f3 100644 --- a/src/app/(account)/signin/page.tsx +++ b/src/app/(account)/signin/page.tsx @@ -5,7 +5,6 @@ import ControlledField from '@/components/ControlledField'; import FancyRectangle from '@/components/FancyRectangle'; import { useSignIn } from '@clerk/clerk-react'; import { zodResolver } from '@hookform/resolvers/zod'; -import type { Metadata } from 'next'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; import { useState } from 'react'; @@ -15,9 +14,9 @@ import { z } from 'zod'; import { handleClerkErrors } from '../helpers'; import { emailSchema } from '../schemas'; -export const metadata: Metadata = { - title: 'Sign In', -}; +// export const metadata: Metadata = { +// title: 'Sign In', +// }; const signInSchema = z.object({ email: emailSchema,