Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add title and other metadata #1151

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading