From cb655d9f773102b3f5ded650e6a5f22931fe86d7 Mon Sep 17 00:00:00 2001
From: m5r
Date: Wed, 13 Jul 2022 23:56:14 +0200
Subject: [PATCH] * hide link to register page * have google not index auth
pages
---
app/features/auth/pages/sign-in.tsx | 10 +++-------
app/routes/__auth/forgot-password.tsx | 2 ++
app/routes/__auth/register.tsx | 2 ++
app/routes/__auth/reset-password.tsx | 2 ++
app/routes/__auth/sign-in.tsx | 2 ++
5 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/app/features/auth/pages/sign-in.tsx b/app/features/auth/pages/sign-in.tsx
index 0026617..0485f4d 100644
--- a/app/features/auth/pages/sign-in.tsx
+++ b/app/features/auth/pages/sign-in.tsx
@@ -16,7 +16,7 @@ export default function SignInPage() {
*/}
diff --git a/app/routes/__auth/forgot-password.tsx b/app/routes/__auth/forgot-password.tsx
index bc57b9d..0602f36 100644
--- a/app/routes/__auth/forgot-password.tsx
+++ b/app/routes/__auth/forgot-password.tsx
@@ -10,4 +10,6 @@ export const action = forgotPasswordAction;
export const loader = forgotPasswordLoader;
export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Forgot password" }),
+ robots: "noindex",
+ googlebot: "noindex",
});
diff --git a/app/routes/__auth/register.tsx b/app/routes/__auth/register.tsx
index a510974..c620c08 100644
--- a/app/routes/__auth/register.tsx
+++ b/app/routes/__auth/register.tsx
@@ -10,4 +10,6 @@ export const action = registerAction;
export const loader = registerLoader;
export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Register" }),
+ robots: "noindex",
+ googlebot: "noindex",
});
diff --git a/app/routes/__auth/reset-password.tsx b/app/routes/__auth/reset-password.tsx
index 01bcf5a..71cbe73 100644
--- a/app/routes/__auth/reset-password.tsx
+++ b/app/routes/__auth/reset-password.tsx
@@ -10,4 +10,6 @@ export const action = resetPasswordAction;
export const loader = resetPasswordLoader;
export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Reset password" }),
+ robots: "noindex",
+ googlebot: "noindex",
});
diff --git a/app/routes/__auth/sign-in.tsx b/app/routes/__auth/sign-in.tsx
index 3efe0d9..74d1d60 100644
--- a/app/routes/__auth/sign-in.tsx
+++ b/app/routes/__auth/sign-in.tsx
@@ -10,4 +10,6 @@ export const action = signInAction;
export const loader = signInLoader;
export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Sign in" }),
+ robots: "noindex",
+ googlebot: "noindex",
});