Skip to content
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
8 changes: 7 additions & 1 deletion docs/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ const title = 'Make any TypeScript Function Durable';
const description =
'"use workflow" brings durability, reliability, and observability to async JavaScript. Build apps and AI Agents that can suspend, resume, and maintain state with ease.';

export const metadata: Metadata = { title, description };
export const metadata: Metadata = {
title: 'Workflow DevKit - Make any TypeScript Function Durable',
description,
alternates: {
canonical: '/',
},
};

const Home = () => (
<>
Expand Down
5 changes: 4 additions & 1 deletion docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ export async function generateMetadata(props: {
if (!page) notFound();

return {
title: page.data.title,
title: `${page.data.title} - Workflow DevKit`,
description: page.data.description,
alternates: {
canonical: `/docs/${slug.join('/')}`,
},
};
}
5 changes: 5 additions & 0 deletions docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Geist, Geist_Mono } from 'next/font/google';
import { HomeLayout } from '@/components/layout/home';
import { Toaster } from '@/components/ui/sonner';
import { baseOptions } from '@/lib/layout.shared';
import { Metadata } from 'next';

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

export const metadata: Metadata = {
metadataBase: new URL('https://useworkflow.dev'),
};

export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html
Expand Down