Skip to content

Commit

Permalink
created robots.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohittomar01 committed Apr 17, 2024
1 parent 22d82c5 commit 61ceff2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
3 changes: 1 addition & 2 deletions src/app/dashboard/[slug]/chat/[chatid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function generateMetadata(
console.log("chattitle in chat id page", fetchedChat[0]?.title as string);

return {
title: "Echoes",
title: "Echoes chat",
description: "echoes Chat",
openGraph: {
title: fetchedChat[0]?.title as string,
Expand All @@ -47,7 +47,6 @@ export async function generateMetadata(
images: [
{
url: `api/og?title=${fetchedChat[0]?.title as string}`,

width: 1200,
height: 680,
},
Expand Down
34 changes: 17 additions & 17 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ export const metadata = {
manifest: "/manifest.json",
viewport:
"minimum-scale=1.0, initial-scale=1.0, width=device-width, shrink-to-fit=no, user-scalable=no, viewport-fit=cover",
openGraph: {
title: "Echoes",
description:
"Collaborative Platform for Researchers. Designed for Humans and AIs.",
url: "https://echoes.team",
siteName: "Echoes",
images: [
{
url: `/api/og?title=Collaborative Platform for Researchers. Designed for Humans and AIs.`,
width: 1800,
height: 1600,
alt: "Echoes",
},
],
locale: "en_US",
type: "website",
},
// openGraph: {
// title: "Echoes",
// description:
// "Collaborative Platform for Researchers. Designed for Humans and AIs.",
// url: "https://echoes.team",
// siteName: "Echoes",
// images: [
// {
// url: `/api/og?title=Collaborative Platform for Researchers. Designed for Humans and AIs.`,
// width: 1800,
// height: 1600,
// alt: "Echoes",
// },
// ],
// locale: "en_US",
// type: "website",
// },
};

export default function RootLayout({
Expand Down
11 changes: 11 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
},
// sitemap: 'https://acme.com/sitemap.xml',
};
}
3 changes: 0 additions & 3 deletions src/app/robots.txt

This file was deleted.

0 comments on commit 61ceff2

Please sign in to comment.