Skip to content

Commit

Permalink
fix(seo): remove metadata on client components
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 authored and phoenixpereira committed Feb 24, 2024
1 parent 2795259 commit 8361990
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
9 changes: 4 additions & 5 deletions src/app/(account)/forgot-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 3 additions & 4 deletions src/app/(account)/join/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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();
Expand Down
7 changes: 3 additions & 4 deletions src/app/(account)/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
Expand Down

0 comments on commit 8361990

Please sign in to comment.