Skip to content

Commit

Permalink
chore: add title and other metadata (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal authored Oct 31, 2024
1 parent 40f287a commit e332a8a
Show file tree
Hide file tree
Showing 2 changed files with 13,312 additions and 11,308 deletions.
42 changes: 29 additions & 13 deletions apps/studio/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
import dynamic from 'next/dynamic';
const StudioWrapper = dynamic(() => import('@/components/StudioWrapper'), {ssr: false})
import { Metadata } from 'next';
import ogImage from '@/img/meta-studio-og-image.jpeg';

export const metadata: Metadata = {
metadataBase: new URL('https://studio.netlify.app'),
const description = 'Studio for AsyncAPI specification, where you can validate, view preview documentation, and generate templates from AsyncAPI document.';
const title = 'AsyncAPI Studio';
const url = 'https://studio.asyncapi.com/';

export const metadata : Metadata = {
title,
description,
metadataBase: new URL(url),
themeColor: '#000000',
openGraph: {
type: 'website',
title: 'AsyncAPI Studio',
description: 'Studio for AsyncAPI specification, where you can validate, view preview documentation, and generate templates from AsyncAPI document.',
url: 'https://studio.netlify.app',
url,
title,
description,
images: [
{
url: ogImage.src,
width: 800,
height: 600,
alt: 'AsyncAPI default image',
url: '/img/meta-studio-og-image.jpeg',
width: 1200,
height: 630,
alt: 'AsyncAPI Studio preview',
},
]
],
},
twitter: {
card: 'summary_large_image',
site: '@AsyncAPISpec',
}
}
title,
description:
'Studio for AsyncAPI specification, where you can validate, view preview documentation, and generate templates from AsyncAPI document.',
images: ['/img/meta-studio-og-image.jpeg'],
},
icons: {
icon: '/favicon.ico',
apple: '/favicon-194x194.png',
},
};

export default async function Home() {
return (
<StudioWrapper />
Expand Down
Loading

0 comments on commit e332a8a

Please sign in to comment.