Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apps/masterbots.ai/app/c/[category]/[chatbot]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { authOptions } from '@/auth'
import { ChatChatbot } from '@/components/routes/chat/chat-chatbot'
import ThreadPanel from '@/components/routes/thread/thread-panel'
import { formatSystemPrompts } from '@/lib/actions'
Expand All @@ -10,7 +11,6 @@ import { nanoid } from 'nanoid'
import { Metadata } from 'next'
import { getServerSession } from 'next-auth'
import { redirect } from 'next/navigation'
import { authOptions } from '@/auth'

export default async function BotThreadsPage({
params,
Expand Down Expand Up @@ -85,12 +85,13 @@ export async function generateMetadata({
params: { chatbot: string }
}): Promise<Metadata> {
const chatbotName = botNames.get(params.chatbot)
const chatbot = await getChatbot({ chatbotName, jwt: '' })

const seoData = {
title: chatbotName || '',
description: chatbotName || '',
description: chatbot.description || '',
ogType: 'website',
ogImageUrl: '',
ogImageUrl: chatbot.avatar || '',
twitterCard: 'summary'
}

Expand Down
4 changes: 2 additions & 2 deletions apps/masterbots.ai/app/c/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { authOptions } from '@/auth'
import ChatThreadListPanel from '@/components/routes/chat/chat-thread-list-panel'
import ThreadPanel from '@/components/routes/thread/thread-panel'
import { generateMetadataFromSEO } from '@/lib/metadata'
Expand All @@ -6,7 +7,6 @@ import { isTokenExpired } from 'mb-lib'
import { Metadata } from 'next'
import { getServerSession } from 'next-auth'
import { redirect } from 'next/navigation'
import { authOptions } from '@/auth'

export default async function IndexPage() {
const session = await getServerSession(authOptions)
Expand Down Expand Up @@ -34,7 +34,7 @@ export default async function IndexPage() {
export async function generateMetadata(): Promise<Metadata> {
const seoData = {
title: 'Chat page',
description: 'Chat page',
description: 'Welcome to the chatbot page. Interact with our AI-powered chatbot and get answers to your questions.',
ogType: 'website',
ogImageUrl: '',
twitterCard: 'summary'
Expand Down