Skip to content

Commit e2889cd

Browse files
authored
SEO improvements (#87)
1 parent 66332f2 commit e2889cd

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

docs/app/(home)/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ const title = 'Make any TypeScript Function Durable';
1414
const description =
1515
'"use workflow" brings durability, reliability, and observability to async JavaScript. Build apps and AI Agents that can suspend, resume, and maintain state with ease.';
1616

17-
export const metadata: Metadata = { title, description };
17+
export const metadata: Metadata = {
18+
title: 'Workflow DevKit - Make any TypeScript Function Durable',
19+
description,
20+
alternates: {
21+
canonical: '/',
22+
},
23+
};
1824

1925
const Home = () => (
2026
<>

docs/app/docs/[[...slug]]/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ export async function generateMetadata(props: {
100100
if (!page) notFound();
101101

102102
return {
103-
title: page.data.title,
103+
title: `${page.data.title} - Workflow DevKit`,
104104
description: page.data.description,
105+
alternates: {
106+
canonical: `/docs/${slug.join('/')}`,
107+
},
105108
};
106109
}

docs/app/layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Geist, Geist_Mono } from 'next/font/google';
55
import { HomeLayout } from '@/components/layout/home';
66
import { Toaster } from '@/components/ui/sonner';
77
import { baseOptions } from '@/lib/layout.shared';
8+
import { Metadata } from 'next';
89

910
const geistSans = Geist({
1011
variable: '--font-geist-sans',
@@ -16,6 +17,10 @@ const geistMono = Geist_Mono({
1617
subsets: ['latin'],
1718
});
1819

20+
export const metadata: Metadata = {
21+
metadataBase: new URL('https://useworkflow.dev'),
22+
};
23+
1924
export default function Layout({ children }: { children: React.ReactNode }) {
2025
return (
2126
<html

0 commit comments

Comments
 (0)